Package com.bc.ceres.binio.util
Class ByteArrayCodec
- java.lang.Object
-
- com.bc.ceres.binio.util.ByteArrayCodec
-
-
Field Summary
Fields Modifier and Type Field Description static ByteArrayCodecBIG_ENDIANstatic ByteArrayCodecLITTLE_ENDIAN
-
Constructor Summary
Constructors Modifier Constructor Description protectedByteArrayCodec()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description bytegetByte(byte[] b, int boff)abstract ByteOrdergetByteOrder()voidgetBytes(byte[] b, int boff, byte[] v, int voff, int vlen)abstract doublegetDouble(byte[] b, int boff)abstract voidgetDoubles(byte[] b, int boff, double[] v, int voff, int vlen)abstract floatgetFloat(byte[] b, int boff)abstract voidgetFloats(byte[] b, int boff, float[] v, int voff, int vlen)static ByteArrayCodecgetInstance(ByteOrder byteOrder)abstract intgetInt(byte[] b, int boff)abstract voidgetInts(byte[] b, int boff, int[] v, int voff, int vlen)abstract longgetLong(byte[] b, int boff)abstract voidgetLongs(byte[] b, int boff, long[] v, int voff, int vlen)abstract shortgetShort(byte[] b, int boff)abstract voidgetShorts(byte[] b, int boff, short[] v, int voff, int vlen)voidsetByte(byte[] b, int boff, byte v)voidsetBytes(byte[] b, int boff, byte[] v, int voff, int vlen)abstract voidsetDouble(byte[] b, int boff, double v)abstract voidsetDoubles(byte[] b, int boff, double[] v, int voff, int vlen)abstract voidsetFloat(byte[] b, int boff, float v)abstract voidsetFloats(byte[] b, int boff, float[] v, int voff, int vlen)abstract voidsetInt(byte[] b, int boff, int v)abstract voidsetInts(byte[] b, int boff, int[] v, int voff, int vlen)abstract voidsetLong(byte[] b, int boff, long v)abstract voidsetLongs(byte[] b, int boff, long[] v, int voff, int vlen)abstract voidsetShort(byte[] b, int boff, short v)abstract voidsetShorts(byte[] b, int boff, short[] v, int voff, int vlen)
-
-
-
Field Detail
-
LITTLE_ENDIAN
public static final ByteArrayCodec LITTLE_ENDIAN
-
BIG_ENDIAN
public static final ByteArrayCodec BIG_ENDIAN
-
-
Method Detail
-
getInstance
public static ByteArrayCodec getInstance(ByteOrder byteOrder)
-
getByteOrder
public abstract ByteOrder getByteOrder()
-
getByte
public final byte getByte(byte[] b, int boff)
-
getShort
public abstract short getShort(byte[] b, int boff)
-
getInt
public abstract int getInt(byte[] b, int boff)
-
getLong
public abstract long getLong(byte[] b, int boff)
-
getFloat
public abstract float getFloat(byte[] b, int boff)
-
getDouble
public abstract double getDouble(byte[] b, int boff)
-
getBytes
public final void getBytes(byte[] b, int boff, byte[] v, int voff, int vlen)
-
getShorts
public abstract void getShorts(byte[] b, int boff, short[] v, int voff, int vlen)
-
getInts
public abstract void getInts(byte[] b, int boff, int[] v, int voff, int vlen)
-
getLongs
public abstract void getLongs(byte[] b, int boff, long[] v, int voff, int vlen)
-
getFloats
public abstract void getFloats(byte[] b, int boff, float[] v, int voff, int vlen)
-
getDoubles
public abstract void getDoubles(byte[] b, int boff, double[] v, int voff, int vlen)
-
setByte
public final void setByte(byte[] b, int boff, byte v)
-
setShort
public abstract void setShort(byte[] b, int boff, short v)
-
setInt
public abstract void setInt(byte[] b, int boff, int v)
-
setLong
public abstract void setLong(byte[] b, int boff, long v)
-
setFloat
public abstract void setFloat(byte[] b, int boff, float v)
-
setDouble
public abstract void setDouble(byte[] b, int boff, double v)
-
setBytes
public final void setBytes(byte[] b, int boff, byte[] v, int voff, int vlen)
-
setShorts
public abstract void setShorts(byte[] b, int boff, short[] v, int voff, int vlen)
-
setInts
public abstract void setInts(byte[] b, int boff, int[] v, int voff, int vlen)
-
setLongs
public abstract void setLongs(byte[] b, int boff, long[] v, int voff, int vlen)
-
setFloats
public abstract void setFloats(byte[] b, int boff, float[] v, int voff, int vlen)
-
setDoubles
public abstract void setDoubles(byte[] b, int boff, double[] v, int voff, int vlen)
-
-