Class PascalFileStoreFactory
java.lang.Object
org.applecommander.os.pascal.PascalFileStoreFactory
- All Implemented Interfaces:
FileStoreFactory, PascalConstants
-
Nested Class Summary
Nested classes/interfaces inherited from interface FileStoreFactory
FileStoreFactory.Context, FileStoreFactory.Level, FileStoreFactory.Message -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<FileStoreOrganization> static final Stringstatic final StringFields inherited from interface PascalConstants
BAD, CAPABILITIES, DIRECTORY_BLOCKS, DIRECTORY_FIRST_BLOCK, DIRECTORY_LAST_BLOCK, ENTRY_FIRST_BLOCK, ENTRY_LAST_BLOCK, ENTRY_LENGTH, ENTRY_NAME, ENTRY_TYPE, FILE_BYTES_USED_IN_LAST_BLOCK, FILE_MODIFICATION_DATE, FILE_NAME_LENGTH, FILE_NAME_MAPPER, MAX_DIRECTORY_BYTES, MAX_DIRECTORY_ENTRIES, PCD, PDA, PTX, VOLUME_BLOCKS_ON_DISK, VOLUME_FILES_ON_DISK, VOLUME_NAME_LENGTH, VOLUME_NAME_MAPPER, VOLUME_RECENT_DATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheck(BlockDevice device) Check for a likely directory structure.create(FileStoreOrganization fileStoreOrganization, Map<String, ConfigurationOption> options) Create aFileStoreusing the given configuration settings.The configuration options forFileStorecreation.The supported organizations forFileStorecreation.getName()The name of this factory.voidInspect the givenSource, storing any results or messages in the context.
-
Field Details
-
VOLUME_NAME_FIELD
- See Also:
-
VOLUME_NAME_DEFAULT
- See Also:
-
VALID_ORGANIZATIONS
-
-
Constructor Details
-
PascalFileStoreFactory
public PascalFileStoreFactory()
-
-
Method Details
-
getName
Description copied from interface:FileStoreFactoryThe name of this factory. Usually the name and file extensions.- Specified by:
getNamein interfaceFileStoreFactory
-
inspect
Description copied from interface:FileStoreFactoryInspect the givenSource, storing any results or messages in the context.- Specified by:
inspectin interfaceFileStoreFactory
-
getFileStoreOrganizations
Description copied from interface:FileStoreFactoryThe supported organizations forFileStorecreation. Note that this isn't particularly useful for archives, so there is a generic "archive" organization. For disk images, this will typically orient around the physical device including sector ordering, if applicable.- Specified by:
getFileStoreOrganizationsin interfaceFileStoreFactory
-
getConfigurationOptions
Description copied from interface:FileStoreFactoryThe configuration options forFileStorecreation. The key of the map is the id and is intended to be utilized in the CLI environment to locate and update a field.- Specified by:
getConfigurationOptionsin interfaceFileStoreFactory
-
create
public PascalFileStore create(FileStoreOrganization fileStoreOrganization, Map<String, ConfigurationOption> options) Description copied from interface:FileStoreFactoryCreate aFileStoreusing the given configuration settings.- Specified by:
createin interfaceFileStoreFactory- See Also:
-
check
Check for a likely directory structure. Note that we scan all sizes, even though that is overkill.
-