Class ProdosCommonDirectoryHeader
java.lang.Object
com.webcodepro.applecommander.storage.os.prodos.ProdosCommonEntry
com.webcodepro.applecommander.storage.os.prodos.ProdosCommonDirectoryHeader
- Direct Known Subclasses:
ProdosSubdirectoryHeader, ProdosVolumeDirectoryHeader
Provide common directory header attributes.
Date created: Oct 5, 2002 11:17:00 PM
-
Field Summary
Fields inherited from class ProdosCommonEntry
ENTRY_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionProdosCommonDirectoryHeader(ProdosFormatDisk disk, int block) Constructor for ProdosCommonDirectoryHeader. -
Method Summary
Modifier and TypeMethodDescriptionvoidDecrement the number of active entries by one.intGet the number of entries per block.intGet the length of each entry.intGet the number of active entries in the directory.getName()Return the name of this common directory header.voidIncrement the number of active entries by one.voidSet the number of entries per block.voidSet the length of each entry.voidsetFileCount(int fileCount) Set the number of active entries in the directory.Methods inherited from class ProdosCommonEntry
canDestroy, canRead, canRename, canWrite, getAccess, getCreationDate, getDisk, getFileEntryBlock, getFormattedDisk, getMinimumProdosVersion, getProdosVersion, getStorageType, hasChanged, isEmpty, isSaplingFile, isSeedlingFile, isSubdirectory, isSubdirectoryHeader, isTreeFile, isVolumeHeader, readFileEntry, setAccess, setCanDestroy, setCanRead, setCanRename, setCanWrite, setCreationDate, setHasChanged, setMinimumProdosVersion, setProdosVersion, setSaplingFile, setSeedlingFile, setStorageType, setSubdirectory, setSubdirectoryHeader, setTreeFile, setVolumeHeader, writeFileEntry
-
Constructor Details
-
ProdosCommonDirectoryHeader
Constructor for ProdosCommonDirectoryHeader.
-
-
Method Details
-
getName
Return the name of this common directory header. -
getEntryLength
public int getEntryLength()Get the length of each entry. Expected to be 0x27. -
setEntryLength
public void setEntryLength()Set the length of each entry. -
getEntriesPerBlock
public int getEntriesPerBlock()Get the number of entries per block. Expected to be 0x0d. -
setEntriesPerBlock
public void setEntriesPerBlock()Set the number of entries per block. -
getFileCount
public int getFileCount()Get the number of active entries in the directory. -
setFileCount
public void setFileCount(int fileCount) Set the number of active entries in the directory. -
incrementFileCount
public void incrementFileCount()Increment the number of active entries by one. -
decrementFileCount
public void decrementFileCount()Decrement the number of active entries by one.
-