Class RDOSDirectory
java.lang.Object
org.applecommander.os.rdos.RDOSDirectory
- All Implemented Interfaces:
Directory, WritableDirectory, RDOSConstants
-
Field Summary
Fields inherited from interface RDOSConstants
ADDRESS_OFFSET, BLOCKS_OFFSET, CAPABILITIES, ENTRY_LENGTH, FILE_NAME_MAPPER, FIRST_BLOCK_OFFSET, LENGTH_OFFSET, NAME_LENGTH, NAME_OFFSET, TYPE_OFFSET -
Method Summary
Modifier and TypeMethodDescriptioncreateFile(String fileName) Create a file.createFrom(ProdosAttributes prodosAttributes) Create a file given the supplied ProDOS attributes.voiddeleteFile(FileEntry fileEntry) Delete a file.getFiles()Return all entries that are stored in this directory.Returns the FileStore that this Directory belongs to.getName()Returns the name of this directory.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Directory
findFile, getDirectories, getParentMethods inherited from interface WritableDirectory
createDirectory
-
Method Details
-
getFileStore
Returns the FileStore that this Directory belongs to.- Specified by:
getFileStorein interfaceDirectory
-
getName
-
getFiles
-
createFile
Create a file. By definition, any file created is aWritableFileEntry.- Specified by:
createFilein interfaceWritableDirectory- See Also:
-
createFrom
Create a file given the supplied ProDOS attributes. This is expected to handle setting all appropriateFileEntryattributes that align. File type should be converted, dates applied, etc.- Specified by:
createFromin interfaceWritableDirectory- See Also:
-
deleteFile
Delete a file.- Specified by:
deleteFilein interfaceWritableDirectory- See Also:
-