From ab445b87d81da99e683c0f627c44cb5a9500680d Mon Sep 17 00:00:00 2001 From: Robert Greene Date: Thu, 12 Dec 2002 01:49:16 +0000 Subject: [PATCH] Changed to work from the ProdosFormatDisk by reading the entry or blocks as appropriate. --- .../storage/ProdosFileEntry.java | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/com/webcodepro/applecommander/storage/ProdosFileEntry.java b/src/com/webcodepro/applecommander/storage/ProdosFileEntry.java index dd2f799..e7ef275 100644 --- a/src/com/webcodepro/applecommander/storage/ProdosFileEntry.java +++ b/src/com/webcodepro/applecommander/storage/ProdosFileEntry.java @@ -34,14 +34,12 @@ import java.util.List; public class ProdosFileEntry extends ProdosCommonEntry implements FileEntry { private List files; private ProdosSubdirectoryHeader subdirectoryHeader; - private ProdosFormatDisk disk; /** * Constructor for ProdosFileEntry. */ - public ProdosFileEntry(byte[] fileEntry, ProdosFormatDisk disk) { - super(fileEntry); - this.disk = disk; + public ProdosFileEntry(ProdosFormatDisk disk, int block, int offset) { + super(disk, block, offset); } /** @@ -52,7 +50,7 @@ public class ProdosFileEntry extends ProdosCommonEntry implements FileEntry { public String getFilename() { String fileName; if (isDeleted()) { - fileName = AppleUtil.getString(getFileEntry(), 1, 15); + fileName = AppleUtil.getString(readFileEntry(), 1, 15); StringBuffer buf = new StringBuffer(); for (int i=0; i