Class DAFConstants

java.lang.Object
org.orekit.files.spice.binary.daf.generic.DAFConstants

public final class DAFConstants extends Object
Constants used for DAF file parsing and writing.
Since:
14.0
Author:
Rafael Ayala
  • Field Details

    • RECORD_LENGTH_BYTES

      public static final int RECORD_LENGTH_BYTES
      Each DAF record is 1024 bytes.
      See Also:
    • DOUBLE_SIZE_BYTES

      public static final int DOUBLE_SIZE_BYTES
      Each double is 8 bytes.
      See Also:
    • INT_SIZE_BYTES

      public static final int INT_SIZE_BYTES
      Each int is 4 bytes.
      See Also:
    • DOUBLES_PER_RECORD

      public static final int DOUBLES_PER_RECORD
      Number of doubles per record (128 = 1024 / 8).
      See Also:
    • SUMMARY_RECORD_CONTROL_WORDS

      public static final int SUMMARY_RECORD_CONTROL_WORDS
      Number of control words stored at the beginning of each summary record. Note that even though these are integers, they are stored as doubles.
      See Also:
    • SUMMARY_RECORD_MAX_SUMMARY_DOUBLES

      public static final int SUMMARY_RECORD_MAX_SUMMARY_DOUBLES
      Maximum number of summary doubles that could be stored in a summary record. This is calculated as DOUBLES_PER_RECORD minus SUMMARY_RECORD_CONTROL_WORDS.
      See Also:
    • COMMENT_RECORD_MAX_CHARS

      public static final int COMMENT_RECORD_MAX_CHARS
      Maximum number of characters in a comment record.
      See Also:
    • TYPE_STRING_LENGTH

      public static final int TYPE_STRING_LENGTH
      Maximum number of characters in type string. This is LOCIDW_MAX_CHARS in SPICE docs.
      See Also:
    • ENDIAN_STRING_LENGTH

      public static final int ENDIAN_STRING_LENGTH
      Number of characters in endian string.
      See Also:
    • DESCRIPTION_LENGTH

      public static final int DESCRIPTION_LENGTH
      Maximum number of characters in description. This is LOCIFN_MAX_CHARS in SPICE docs.
      See Also:
    • FTP_STRING_OFFSET

      public static final int FTP_STRING_OFFSET
      Byte offset for FTP string.
      See Also:
    • FTPSTR

      public static final String FTPSTR
      Standard valid FTPSTR for integrity checking.
      See Also:
    • FTP_STRING_LENGTH

      public static final int FTP_STRING_LENGTH
      Number of characters in the FTP string.
      See Also:
    • LITTLE_ENDIAN_STRING

      public static final String LITTLE_ENDIAN_STRING
      Little endian string.
      See Also:
    • BIG_ENDIAN_STRING

      public static final String BIG_ENDIAN_STRING
      Big endian string.
      See Also:
    • FILE_TYPE_PATTERN

      public static final Pattern FILE_TYPE_PATTERN
      Pattern for validating DAF file type string format. File type should be "DAF/" followed by 0 to 4 characters.
    • BUFFER_SIZE

      public static final int BUFFER_SIZE
      Buffer size for parsing DAF files.
      See Also:
    • NULL_ASCII

      public static final byte NULL_ASCII
      ASCII code for null character.
      See Also:
    • EOT_ASCII

      public static final byte EOT_ASCII
      ASCII code for EOT character.
      See Also:
    • SPACE_ASCII

      public static final byte SPACE_ASCII
      ASCII code for space character.
      See Also: