Package org.locationtech.proj4j.datum
Class NTV1
java.lang.Object
org.locationtech.proj4j.datum.NTV1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
containsAt
(byte[] needle, byte[] haystack, int offset) private static double
doubleFromBytes
(byte[] b, int offset) static Grid.ConversionTable
init
(DataInputStream definition) private static int
intFromBytes
(byte[] b, int offset) static void
load
(DataInputStream definition, Grid grid) static boolean
testHeader
(byte[] header)
-
Field Details
-
magic1
private static final byte[] magic1 -
magic2
private static final byte[] magic2 -
magic3
private static final byte[] magic3
-
-
Constructor Details
-
NTV1
public NTV1()
-
-
Method Details
-
testHeader
public static boolean testHeader(byte[] header) -
init
- Throws:
IOException
-
load
- Throws:
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)
-