home *** CD-ROM | disk | FTP | other *** search
- package sun.misc;
-
- import java.io.File;
- import java.io.FileInputStream;
- import java.io.IOException;
- import java.io.InputStream;
- import java.net.URL;
-
- final class URLClassPath$FileLoader$1 extends Resource {
- // $FF: synthetic field
- final String val$name;
- // $FF: synthetic field
- final URL val$url;
- // $FF: synthetic field
- final File val$file;
- // $FF: synthetic field
- final URLClassPath.FileLoader this$0;
-
- URLClassPath$FileLoader$1(URLClassPath.FileLoader var1, String var2, URL var3, File var4) {
- this.this$0 = var1;
- this.val$name = var2;
- this.val$url = var3;
- this.val$file = var4;
- }
-
- public String getName() {
- return this.val$name;
- }
-
- public URL getURL() {
- return this.val$url;
- }
-
- public URL getCodeSourceURL() {
- return this.this$0.getBaseURL();
- }
-
- public InputStream getInputStream() throws IOException {
- return new FileInputStream(this.val$file);
- }
-
- public int getContentLength() throws IOException {
- return (int)this.val$file.length();
- }
- }
-