mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-10-31 16:04:51 +00:00
Changed to work from readFileEntry.
This commit is contained in:
parent
62c7b5bc70
commit
6f3ef71add
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user