Class OmfRecord

    • Constructor Detail

      • OmfRecord

        public OmfRecord()
    • Method Detail

      • getRecordType

        public byte getRecordType()
      • getRecordLength

        public int getRecordLength()
      • readRecordHeader

        public void readRecordHeader​(BinaryReader reader)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • readCheckSumByte

        public void readCheckSumByte​(BinaryReader reader)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • calcCheckSum

        public byte calcCheckSum​(BinaryReader reader)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • validCheckSum

        public boolean validCheckSum​(BinaryReader reader)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • hasBigFields

        public boolean hasBigFields()
      • readInt1Or2

        public static int readInt1Or2​(BinaryReader reader,
                                      boolean isBig)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • readInt2Or4

        public static int readInt2Or4​(BinaryReader reader,
                                      boolean isBig)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • readIndex

        public static int readIndex​(BinaryReader reader)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • readString

        public static java.lang.String readString​(BinaryReader reader)
                                           throws java.io.IOException
        Read the OMF string format, 1-byte length, followed by that many ascii characters
        Parameters:
        reader -
        Returns:
        Throws:
        java.io.IOException