Class MBIn

java.lang.Object
org.nustaq.serialization.minbin.MBIn

public class MBIn
extends java.lang.Object
Date: 12.04.2014 Time: 22:10 Input reader for minbin byte[]
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected byte[] bytez  
    protected int pos  
  • Constructor Summary

    Constructors 
    Constructor Description
    MBIn​(byte[] bytez, int pos)  
    MBIn​(MinBin mb, byte[] bytez, int pos)  
  • Method Summary

    Modifier and Type Method Description
    byte[] getBuffer()  
    int getCount()  
    int getPos()  
    byte peekIn()  
    java.lang.Object readArray()  
    java.lang.Object readArrayRaw​(byte type, int len, java.lang.Object resultingArray)
    read into preallocated array, allows to write to different type (e.g. boolean[] from byte[])
    byte readIn()  
    long readInt()  
    java.lang.Object readObject()  
    java.lang.Object readTag​(byte tag)  
    void reset()  
    void setBuffer​(byte[] buf, int count)  
    void setPos​(int newpos)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • bytez

      protected byte[] bytez
    • pos

      protected int pos
  • Constructor Details

    • MBIn

      public MBIn​(byte[] bytez, int pos)
    • MBIn

      public MBIn​(MinBin mb, byte[] bytez, int pos)
  • Method Details

    • readIn

      public byte readIn()
    • peekIn

      public byte peekIn()
    • readInt

      public long readInt()
    • readArray

      public java.lang.Object readArray()
    • readArrayRaw

      public java.lang.Object readArrayRaw​(byte type, int len, java.lang.Object resultingArray)
      read into preallocated array, allows to write to different type (e.g. boolean[] from byte[])
      Parameters:
      type - type tag.
      len -
      resultingArray -
      Returns:
    • readTag

      public java.lang.Object readTag​(byte tag)
    • readObject

      public java.lang.Object 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()