com.webcodepro.applecommander.storage.os.prodos
Class ProdosCommonDirectoryHeader

java.lang.Object
  extended by com.webcodepro.applecommander.storage.os.prodos.ProdosCommonEntry
      extended by com.webcodepro.applecommander.storage.os.prodos.ProdosCommonDirectoryHeader
Direct Known Subclasses:
ProdosSubdirectoryHeader, ProdosVolumeDirectoryHeader

public class ProdosCommonDirectoryHeader
extends ProdosCommonEntry

Provide common directory header attributes.

Date created: Oct 5, 2002 11:17:00 PM

Author:
Rob Greene

Field Summary
 
Fields inherited from class com.webcodepro.applecommander.storage.os.prodos.ProdosCommonEntry
ENTRY_LENGTH
 
Constructor Summary
ProdosCommonDirectoryHeader(ProdosFormatDisk disk, int block)
          Constructor for ProdosCommonDirectoryHeader.
 
Method Summary
 void decrementFileCount()
          Decrement the number of active entries by one.
 int getBitMapPointer()
          Get the block number of the bit map.
 int getEntriesPerBlock()
          Get the number of entries per block.
 int getEntryLength()
          Get the length of each entry.
 int getFileCount()
          Get the number of active entries in the volume directory.
 int getTotalBlocks()
          Get the total number of blocks on this volume.
 void incrementFileCount()
          Increment the number of active entries by one.
 void setBitMapPointer(int blockNumber)
          Set the block number of the bit map.
 void setEntriesPerBlock()
          Set the number of entries per block.
 void setEntryLength()
          Set the length of each entry.
 void setFileCount(int fileCount)
          Set the number of active entries in the volume directory.
 void setTotalBlocks(int totalBlocks)
          Set the total number of blocks on this volume.
 
Methods inherited from class com.webcodepro.applecommander.storage.os.prodos.ProdosCommonEntry
canDestroy, canRead, canRename, canWrite, getAccess, getCreationDate, getDisk, getFileEntryBlock, getFormattedDisk, getMinimumProdosVersion, getProdosVersion, getStorageType, hasChanged, isEmpty, isSaplingFile, isSeedlingFile, isSubdirectoryHeader, isTreeFile, isVolumeHeader, readFileEntry, setAccess, setCanDestroy, setCanRead, setCanRename, setCanWrite, setCreationDate, setHasChanged, setMinimumProdosVersion, setProdosVersion, setSaplingFile, setSeedlingFile, setStorageType, setSubdirectoryHeader, setTreeFile, setVolumeHeader, writeFileEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProdosCommonDirectoryHeader

public ProdosCommonDirectoryHeader(ProdosFormatDisk disk,
                                   int block)
Constructor for ProdosCommonDirectoryHeader.

Method Detail

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 volume directory.


setFileCount

public void setFileCount(int fileCount)
Set the number of active entries in the volume 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.


getBitMapPointer

public int getBitMapPointer()
Get the block number of the bit map.


setBitMapPointer

public void setBitMapPointer(int blockNumber)
Set the block number of the bit map.


getTotalBlocks

public int getTotalBlocks()
Get the total number of blocks on this volume.


setTotalBlocks

public void setTotalBlocks(int totalBlocks)
Set the total number of blocks on this volume.