Class NTV1


  • public final class NTV1
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static byte[] magic1  
      private static byte[] magic2  
      private static byte[] magic3  
    • Constructor Summary

      Constructors 
      Constructor Description
      NTV1()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static boolean containsAt​(byte[] needle, byte[] haystack, int offset)  
      private static double doubleFromBytes​(byte[] b, int offset)  
      static Grid.ConversionTable init​(java.io.DataInputStream definition)  
      private static int intFromBytes​(byte[] b, int offset)  
      static void load​(java.io.DataInputStream definition, Grid grid)  
      static boolean testHeader​(byte[] header)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • magic1

        private static final byte[] magic1
      • magic2

        private static final byte[] magic2
      • magic3

        private static final byte[] magic3
    • Constructor Detail

      • NTV1

        public NTV1()
    • Method Detail

      • testHeader

        public static boolean testHeader​(byte[] header)
      • init

        public static Grid.ConversionTable init​(java.io.DataInputStream definition)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • load

        public static void load​(java.io.DataInputStream definition,
                                Grid grid)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • containsAt

        private static boolean containsAt​(byte[] needle,
                                          byte[] haystack,
                                          int offset)
      • doubleFromBytes

        private static double doubleFromBytes​(byte[] b,
                                              int offset)
      • intFromBytes

        private static int intFromBytes​(byte[] b,
                                        int offset)