Interface PascalConstants

All Known Implementing Classes:
PascalDirectory, PascalFileEntry, PascalFileStore, PascalFileStoreFactory

public interface PascalConstants
  • 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_BLOCK
      The 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_BLOCK
      The 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_TYPE
      File 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_NAME
      Name of entry. Note that volume and file have different max lengths.
      See Also:
    • FILE_NAME_LENGTH

      static final int FILE_NAME_LENGTH
      Maximum length of a file name.
      See Also:
    • VOLUME_NAME_LENGTH

      static final int VOLUME_NAME_LENGTH
      Maximum length of the volume name.
      See Also:
    • VOLUME_BLOCKS_ON_DISK

      static final int VOLUME_BLOCKS_ON_DISK
      Number of blocks on disk.
      See Also:
    • VOLUME_FILES_ON_DISK

      static final int VOLUME_FILES_ON_DISK
      Number of files on disk.
      See Also:
    • VOLUME_RECENT_DATE

      static final int VOLUME_RECENT_DATE
      Most recent date setting.
      See Also:
    • FILE_BYTES_USED_IN_LAST_BLOCK

      static final int FILE_BYTES_USED_IN_LAST_BLOCK
      Number of bytes used in the last block. Range is 1..512.
      See Also:
    • FILE_MODIFICATION_DATE

      static final int FILE_MODIFICATION_DATE
      Modification date for file.
      See Also:
    • CAPABILITIES

      static final Set<Capability> CAPABILITIES
    • BAD

      static final int BAD
      Bad blocks ProDOS file type.
      See Also:
    • PCD

      static final int PCD
      Pascal 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 PTX
      Pascal 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 PDA
      Pascal DATA file type maps into ProDOS PDA (Pascal Data).
      See Also:
    • FILE_NAME_MAPPER

      static final CharacterMapper 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

      static final CharacterMapper 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 (,).