Interface PascalConstants
- All Known Implementing Classes:
PascalDirectory, PascalFileEntry, PascalFileStore, PascalFileStoreFactory
public interface PascalConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBad blocks ProDOS file type.static final Set<Capability> static final intstatic final intstatic final intstatic final intThe block number of the first block.static final intThe block number of the last block.static final intstatic final intName of entry.static final intFile type.static final intNumber of bytes used in the last block.static final intModification date for file.static final intMaximum length of a file name.static final CharacterMapperPer the Apple Pascal documentation:static final intstatic final intstatic final intPascal CODE file type maps into ProDOS PCD (Pascal Code).static final intPascal DATA file type maps into ProDOS PDA (Pascal Data).static final intPascal TEXT file type maps into ProDOS PTX (Pascal Text).static final intNumber of blocks on disk.static final intNumber of files on disk.static final intMaximum length of the volume name.static final CharacterMapperPer the Apple Pascal documentation: (inferred)static final intMost recent date setting.
-
Field Details
-
DIRECTORY_FIRST_BLOCK
static final int DIRECTORY_FIRST_BLOCK- See Also:
-
DIRECTORY_LAST_BLOCK
static final int DIRECTORY_LAST_BLOCK- See Also:
-
DIRECTORY_BLOCKS
static final int DIRECTORY_BLOCKS- See Also:
-
MAX_DIRECTORY_ENTRIES
static final int MAX_DIRECTORY_ENTRIES- See Also:
-
ENTRY_LENGTH
static final int ENTRY_LENGTH- See Also:
-
MAX_DIRECTORY_BYTES
static final int MAX_DIRECTORY_BYTES- See Also:
-
ENTRY_FIRST_BLOCK
static final int ENTRY_FIRST_BLOCKThe block number of the first block. For the volume header, this is the first directory block and is always 0.- See Also:
-
ENTRY_LAST_BLOCK
static final int ENTRY_LAST_BLOCKThe block number of the last block. For the volume header, this is the last directory block and is always 6. For a file, it is the last block+1.- See Also:
-
ENTRY_TYPE
static final int ENTRY_TYPEFile type. Bits 0-3 below. Bit 15 is used by the filer. Bits 4-14 reserved. | Value | Description | | :---: | :--- | | 0 | Volume Header | | 1 |xdskfile(bad blocks) | | 2 |codefile| | 3 |textfile| | 4 |infofile| | 5 |datafile| | 6 |graffile| | 7 |fotofile| | 8 |securedir|- See Also:
-
ENTRY_NAME
static final int ENTRY_NAMEName of entry. Note that volume and file have different max lengths.- See Also:
-
FILE_NAME_LENGTH
static final int FILE_NAME_LENGTHMaximum length of a file name.- See Also:
-
VOLUME_NAME_LENGTH
static final int VOLUME_NAME_LENGTHMaximum length of the volume name.- See Also:
-
VOLUME_BLOCKS_ON_DISK
static final int VOLUME_BLOCKS_ON_DISKNumber of blocks on disk.- See Also:
-
VOLUME_FILES_ON_DISK
static final int VOLUME_FILES_ON_DISKNumber of files on disk.- See Also:
-
VOLUME_RECENT_DATE
static final int VOLUME_RECENT_DATEMost recent date setting.- See Also:
-
FILE_BYTES_USED_IN_LAST_BLOCK
static final int FILE_BYTES_USED_IN_LAST_BLOCKNumber of bytes used in the last block. Range is 1..512.- See Also:
-
FILE_MODIFICATION_DATE
static final int FILE_MODIFICATION_DATEModification date for file.- See Also:
-
CAPABILITIES
-
BAD
static final int BADBad blocks ProDOS file type.- See Also:
-
PCD
static final int PCDPascal CODE file type maps into ProDOS PCD (Pascal Code). Even though this is Apple /// related, we need something distinct. And, PCD files are p-code.- See Also:
-
PTX
static final int PTXPascal TEXT file type maps into ProDOS PTX (Pascal Text). Apple /// file type, but same format as Apple Pascal uses.- See Also:
-
PDA
static final int PDAPascal DATA file type maps into ProDOS PDA (Pascal Data).- See Also:
-
FILE_NAME_MAPPER
Per the Apple Pascal documentation:
- Lower-case are translated to upper-case.
- Spaces and non-printing characters are removed from the filename.
- You should not include dollar sign (
$), left square bracket ([), equals sign (=), or question mark (?).
-
VOLUME_NAME_MAPPER
Per the Apple Pascal documentation: (inferred)
- Lower-case are translated to upper-case.
- Spaces and non-printing characters are removed from the volume name.
- You should not include equals sign (
=), or dollar sign ($), question mark (?), or comma (,).
-