Class RDOSFileStoreFactory
java.lang.Object
org.applecommander.os.rdos.RDOSFileStoreFactory
- All Implemented Interfaces:
FileStoreFactory, RDOSConstants
-
Nested Class Summary
Nested classes/interfaces inherited from interface FileStoreFactory
FileStoreFactory.Context, FileStoreFactory.Level, FileStoreFactory.Message -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte[]Simple directory marker to determine sector orderstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final List<FileStoreOrganization> 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(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.test(TrackSectorDevice device, RDOSVersionAdapter adapter) booleantestCatalogSector(DataBuffer data, int maxBlocks) Test a single catalog sector.
-
Field Details
-
CAT_MARKER
public static final byte[] CAT_MARKERSimple directory marker to determine sector order -
VALID_FILE_TYPES
-
VALID_ORGANIZATIONS
-
STARTUP_FILE_NAME_FIELD
- See Also:
-
STARTUP_FILE_NAME
- See Also:
-
STARTUP_CONTENT_FIELD
- See Also:
-
STARTUP_CONTENT_DEFAULT
- See Also:
-
-
Constructor Details
-
RDOSFileStoreFactory
public RDOSFileStoreFactory()
-
-
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 RDOSFileStore create(FileStoreOrganization fileStoreOrganization, Map<String, ConfigurationOption> options) Description copied from interface:FileStoreFactoryCreate aFileStoreusing the given configuration settings.- Specified by:
createin interfaceFileStoreFactory- See Also:
-
test
-
testCatalogSector
Test a single catalog sector.
Offset Description $00-$17File name; space-filled. If the first byte is $00, that is the end of the directory. If the first byte is $80, the file is deleted. $18File type. Valid types are 'A', 'B', 'T', 'S'. $19File length in blocks (block = sector = 256 bytes). $1A-$1BAddress of application. For Applesoft and binary; others may vary. $1C-$1DLength in bytes of file. (Text files are multiple of 256.) $1E-$1FStarting block of application.
-