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.
* @param fileEntry
*/
public ProdosSubdirectoryHeader(byte[] fileEntry) {
super(fileEntry);
public ProdosSubdirectoryHeader(ProdosFormatDisk disk, int block) {
super(disk, block);
}
/**
* Return the name of this subdirectory.
*/
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.
*/
public int getParentPointer() {
return AppleUtil.getWordValue(getFileEntry(), 0x23);
return AppleUtil.getWordValue(readFileEntry(), 0x23);
}
/**
* Return the number of the file entry within the parent block.
*/
public int getParentEntry() {
return AppleUtil.getUnsignedByte(getFileEntry()[0x25]);
return AppleUtil.getUnsignedByte(readFileEntry()[0x25]);
}
/**
* Return the length of the parent entry.
*/
public int getParentEntryLength() {
return AppleUtil.getWordValue(getFileEntry(), 0x26);
return AppleUtil.getWordValue(readFileEntry(), 0x26);
}
}