Class DiskFileStoreAdapter
java.lang.Object
com.webcodepro.applecommander.storage.DiskFileStoreAdapter
- All Implemented Interfaces:
CapabilityProvider, FileStore, Container, InformationProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTheDiskDirectoryEntryAdapteris a shim that allows aFormattedDiskorDirectoryEntryto be mapped into the new/evolvingDirectory/WritableDirectoryand associated interface(s).static classTheDiskFileEntryAdapteris a shim that allows acom.webcodepro.applecommander.storage.FileEntryto be mapped into the new/evolvingFileEntry/WritableFileEntryand associated interface(s). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancan(Capability capability) Helps identify capabilities of the existing component.<T> Optional<T> Translate the "legacy"FormattedDiskFileColumnHeaderto the newDisplayColumnstructure.getLabel()The label is a mechanism to distinguish multiple file stores in a single file.This is the path separator character.All FileStores support a "root" directory that references all files.
-
Constructor Details
-
DiskFileStoreAdapter
-
-
Method Details
-
get
-
getLabel
Description copied from interface:FileStoreThe label is a mechanism to distinguish multiple file stores in a single file. For instance, UniDOS has two file stores in the file, so it would have two different labels such as "Disk 1" and "Disk 2". -
getRootDirectory
Description copied from interface:FileStoreAll FileStores support a "root" directory that references all files.- Specified by:
getRootDirectoryin interfaceFileStore
-
getPathSeparator
Description copied from interface:FileStoreThis is the path separator character.- Specified by:
getPathSeparatorin interfaceFileStore
-
can
Description copied from interface:CapabilityProviderHelps identify capabilities of the existing component.- Specified by:
canin interfaceCapabilityProvider
-
getDisplayColumns
Translate the "legacy"FormattedDiskFileColumnHeaderto the newDisplayColumnstructure. Note that we need to track what has been seen as well as where it comes from and the index values in order to replicate most of the capability. This does not solve for type since the old API pre-formats everything as a String.- Specified by:
getDisplayColumnsin interfaceFileStore
-
information
- Specified by:
informationin interfaceInformationProvider
-