Package org.nustaq.serialization.minbin
Class MBIn
java.lang.Object
org.nustaq.serialization.minbin.MBIn
public class MBIn extends Object
Date: 12.04.2014
Time: 22:10
Input reader for minbin byte[]
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description byte[]getBuffer()intgetCount()intgetPos()bytepeekIn()ObjectreadArray()ObjectreadArrayRaw(byte type, int len, Object resultingArray)read into preallocated array, allows to write to different type (e.g. boolean[] from byte[])bytereadIn()longreadInt()ObjectreadObject()ObjectreadTag(byte tag)voidreset()voidsetBuffer(byte[] buf, int count)voidsetPos(int newpos)
-
Field Details
-
Constructor Details
-
Method Details
-
readIn
public byte readIn() -
peekIn
public byte peekIn() -
readInt
public long readInt() -
readArray
-
readArrayRaw
read into preallocated array, allows to write to different type (e.g. boolean[] from byte[])- Parameters:
type- type tag.len-resultingArray-- Returns:
-
readTag
-
readObject
-
getBuffer
public byte[] getBuffer() -
getPos
public int getPos() -
setPos
public void setPos(int newpos) -
setBuffer
public void setBuffer(byte[] buf, int count) -
reset
public void reset() -
getCount
public int getCount()
-