Package ucar.nc2.iosp.fysat.util
Class EndianByteBuffer
- java.lang.Object
-
- ucar.nc2.iosp.fysat.util.EndianByteBuffer
-
public class EndianByteBuffer extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static short
BIG_ENDIAN
static short
LITTLE_ENDIAN
-
Constructor Summary
Constructors Constructor Description EndianByteBuffer(byte[] byteArray)
EndianByteBuffer(byte[] byteArray, short endian)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDouble()
float
getFloat()
int
getInt()
int[]
getIntArray()
long
getLong()
long[]
getLongArray()
short
getShort()
short[]
getShortArray()
String
getString(int byteCount)
void
position(int newPosition)
void
setEndian(short endian)
-
-
-
Method Detail
-
setEndian
public void setEndian(short endian)
-
getInt
public int getInt()
-
getShort
public short getShort()
-
getLong
public long getLong()
-
getFloat
public float getFloat()
-
getDouble
public double getDouble()
-
getString
public String getString(int byteCount)
-
getShortArray
public short[] getShortArray()
-
getLongArray
public long[] getLongArray()
-
getIntArray
public int[] getIntArray()
-
position
public final void position(int newPosition)
-
-