Class GamedosDirectory
java.lang.Object
org.applecommander.os.gamedos.GamedosDirectory
- All Implemented Interfaces:
CapabilityProvider, Directory, WritableDirectory, GamedosConstants
-
Field Summary
Fields inherited from interface GamedosConstants
CAPABILITIES, DIRECTORY_SECTOR, DIRECTORY_SIZE, DIRECTORY_TRACK, ENTRY_META_OFFSET, ENTRY_NAME_LENGTH, ENTRY_NAME_OFFSET, ENTRY_SECTOR_OFFSET, ENTRY_SECTORS_OFFSET, ENTRY_SIZE, ENTRY_TRACK_OFFSET, ENTRY_TYPE_OFFSET, MARKER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancan(Capability capability) Helps identify capabilities of the existing component.createFile(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.Get the parent directory.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Directory
findFile, getDirectoriesMethods inherited from interface WritableDirectory
createDirectory
-
Constructor Details
-
GamedosDirectory
-
-
Method Details
-
can
Description copied from interface:CapabilityProviderHelps identify capabilities of the existing component.- Specified by:
canin interfaceCapabilityProvider
-
getParent
-
getFileStore
Description copied from interface:DirectoryReturns 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:
-