Changed to work from readFileEntry.

This commit is contained in:
Robert Greene 2002-12-12 01:55:13 +00:00
parent 62c7b5bc70
commit 6f3ef71add
1 changed files with 6 additions and 6 deletions

View File

@ -31,15 +31,15 @@ public class ProdosSubdirectoryHeader extends ProdosCommonDirectoryHeader {
* Constructor for ProdosSubdirectoryHeader. * Constructor for ProdosSubdirectoryHeader.
* @param fileEntry * @param fileEntry
*/ */
public ProdosSubdirectoryHeader(byte[] fileEntry) { public ProdosSubdirectoryHeader(ProdosFormatDisk disk, int block) {
super(fileEntry); super(disk, block);
} }
/** /**
* Return the name of this subdirectory. * Return the name of this subdirectory.
*/ */
public String getSubdirectoryName() { public String getSubdirectoryName() {
return AppleUtil.getProdosString(getFileEntry(), 0); return AppleUtil.getProdosString(readFileEntry(), 0);
} }
/** /**
@ -47,20 +47,20 @@ public class ProdosSubdirectoryHeader extends ProdosCommonDirectoryHeader {
* file entry for this subdirectory. * file entry for this subdirectory.
*/ */
public int getParentPointer() { public int getParentPointer() {
return AppleUtil.getWordValue(getFileEntry(), 0x23); return AppleUtil.getWordValue(readFileEntry(), 0x23);
} }
/** /**
* Return the number of the file entry within the parent block. * Return the number of the file entry within the parent block.
*/ */
public int getParentEntry() { public int getParentEntry() {
return AppleUtil.getUnsignedByte(getFileEntry()[0x25]); return AppleUtil.getUnsignedByte(readFileEntry()[0x25]);
} }
/** /**
* Return the length of the parent entry. * Return the length of the parent entry.
*/ */
public int getParentEntryLength() { public int getParentEntryLength() {
return AppleUtil.getWordValue(getFileEntry(), 0x26); return AppleUtil.getWordValue(readFileEntry(), 0x26);
} }
} }