|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.data.projection.datum.NTV2Util
public class NTV2Util
A set of static utility methods for reading the NTv2 file format
Constructor Summary | |
---|---|
private |
NTV2Util()
|
Method Summary | |
---|---|
static double |
getDouble(byte[] b,
boolean bigEndian)
Get a double from the first 8 bytes of a byte array, in either Big Endian or Little Endian format. |
static float |
getFloat(byte[] b,
boolean bigEndian)
Get a float from the first 4 bytes of a byte array, in either Big Endian or Little Endian format. |
static int |
getInt(byte[] b,
boolean bigEndian)
Get an int from the first 4 bytes of a byte array, in either Big Endian or Little Endian format. |
static int |
getIntBE(byte[] b,
int i)
Get a Big Endian int from four bytes of a byte array |
static int |
getIntLE(byte[] b,
int i)
Get a Little Endian int from four bytes of a byte array |
static boolean |
isNioAvailable()
Does the current VM support the New IO api |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private NTV2Util()
Method Detail |
---|
public static final int getIntLE(byte[] b, int i)
b
- the byte arrayi
- the index of the first data byte in the array
public static final int getIntBE(byte[] b, int i)
b
- the byte arrayi
- the index of the first data byte in the array
public static final int getInt(byte[] b, boolean bigEndian)
b
- the byte arraybigEndian
- is the byte array Big Endian?
public static final float getFloat(byte[] b, boolean bigEndian)
b
- the byte arraybigEndian
- is the byte array Big Endian?
public static final double getDouble(byte[] b, boolean bigEndian)
b
- the byte arraybigEndian
- is the byte array Big Endian?
public static boolean isNioAvailable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |