Class ProdosDirectoryEntry
java.lang.Object
com.webcodepro.applecommander.storage.os.prodos.ProdosCommonEntry
com.webcodepro.applecommander.storage.os.prodos.ProdosFileEntry
com.webcodepro.applecommander.storage.os.prodos.ProdosDirectoryEntry
- All Implemented Interfaces:
DirectoryEntry,FileEntry
Implement directory functionality.
Date Created: Mar 2, 2003
-
Field Summary
Fields inherited from class com.webcodepro.applecommander.storage.os.prodos.ProdosCommonEntry
ENTRY_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionProdosDirectoryEntry(ProdosFormatDisk disk, int block, int offset, ProdosSubdirectoryHeader subdirectoryHeader) Constructor for ProdosDirectoryEntry. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIdentify if additional directories can be created.booleanIndicates if this disk image can create a file.createDirectory(String name) Create a new DirectoryEntry.Create a new FileEntry.Return a name for this directory.getFiles()Retrieve the list of files in this directory.Get the subdirectory header.Methods inherited from class com.webcodepro.applecommander.storage.os.prodos.ProdosFileEntry
delete, getAddress, getAuxiliaryType, getBlocksUsed, getEofPosition, getFileColumnData, getFileData, getFilename, getFiletype, getFiletypeByte, getFileTypeString, getHeaderPointer, getKeyPointer, getLastModificationDate, getMaximumFilenameLength, getSize, getSuggestedFilter, isAppleWorksFile, isDeleted, isDirectory, isForkedFile, isGEOSFile, isLocked, needsAddress, setAddress, setAuxiliaryType, setAuxiliaryType, setAuxiliaryType, setBlocksUsed, setEofPosition, setFileData, setFileData, setFilename, setFiletype, setFiletype, setGEOSMeta, setHeaderPointer, setKeyPointer, setLastModificationDate, setLockedMethods 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, isSubdirectory, isSubdirectoryHeader, isTreeFile, isVolumeHeader, readFileEntry, setAccess, setCanDestroy, setCanRead, setCanRename, setCanWrite, setCreationDate, setHasChanged, setMinimumProdosVersion, setProdosVersion, setSaplingFile, setSeedlingFile, setStorageType, setSubdirectory, setSubdirectoryHeader, setTreeFile, setVolumeHeader, writeFileEntryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.webcodepro.applecommander.storage.DirectoryEntry
getFormattedDiskMethods inherited from interface com.webcodepro.applecommander.storage.FileEntry
getFormattedDisk
-
Constructor Details
-
ProdosDirectoryEntry
public ProdosDirectoryEntry(ProdosFormatDisk disk, int block, int offset, ProdosSubdirectoryHeader subdirectoryHeader) Constructor for ProdosDirectoryEntry.
-
-
Method Details
-
getSubdirectoryHeader
Get the subdirectory header. -
getDirname
Return a name for this directory.- Specified by:
getDirnamein interfaceDirectoryEntry
-
getFiles
Retrieve the list of files in this directory. Note that if this is not a directory, the return value should be null. If this a directory, the return value should always be a list - a directory with 0 entries returns an empty list.- Specified by:
getFilesin interfaceDirectoryEntry- Throws:
DiskException
-
createFile
Create a new FileEntry.- Specified by:
createFilein interfaceDirectoryEntry- Throws:
DiskFullException
-
canCreateDirectories
public boolean canCreateDirectories()Identify if additional directories can be created. This may indicate that directories are not available to this operating system or simply that the disk image is "locked" to writing.- Specified by:
canCreateDirectoriesin interfaceDirectoryEntry
-
canCreateFile
public boolean canCreateFile()Indicates if this disk image can create a file. If not, the reason may be as simple as it has not been implemented to something specific about the disk.- Specified by:
canCreateFilein interfaceDirectoryEntry
-
createDirectory
Create a new DirectoryEntry.- Specified by:
createDirectoryin interfaceDirectoryEntry- Throws:
DiskFullException- See Also:
-