home *** CD-ROM | disk | FTP | other *** search
- package espresso;
-
- import java.io.File;
- import java.io.FileInputStream;
- import java.io.IOException;
-
- class PlainFile extends GeneralFile {
- // $FF: renamed from: f java.io.File
- File field_0;
-
- GeneralFile open(String var1) {
- return new PlainFile(new File(this.field_0, var1));
- }
-
- String[] list() throws IOException {
- return this.field_0.list();
- }
-
- byte[] read() throws IOException {
- FileInputStream var1 = new FileInputStream(this.field_0);
- byte[] var2 = new byte[var1.available()];
- if (var1.read(var2) != var2.length) {
- throw new IOException("read error");
- } else {
- var1.close();
- return var2;
- }
- }
-
- boolean isDirectory() {
- return this.field_0.isDirectory();
- }
-
- boolean exists() {
- return this.field_0.exists();
- }
-
- String getPath() {
- return this.field_0.getPath();
- }
-
- PlainFile(File var1) {
- this.field_0 = var1;
- }
- }
-