Class FileHeader.Version

  • Enclosing class:
    FileHeader

    public static class FileHeader.Version
    extends java.lang.Object
    • Constructor Detail

      • Version

        public Version​(int v)
      • Version

        public Version​(java.lang.String verstr)
                throws java.lang.NumberFormatException
        Create a version instance from a version string. Expected format: '%1d.%2d' (printf format string)
        Parameters:
        verstr -
        Throws:
        java.lang.NumberFormatException - on any format violation
    • Method Detail

      • toString

        public java.lang.String toString()
        Creates string from major and minor number. FORMAT: printf("%d.%02d)
        Overrides:
        toString in class java.lang.Object
      • write

        public void write​(CDataReadWriteAccess io)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getCode

        public int getCode()
        Returns:
        returns version code := major*100 + minor
      • getMajor

        public int getMajor()
      • getMinor

        public int getMinor()