protected class

BasicBSONDecoder.BSONInput

extends Object
java.lang.Object
   ↳ org.bson.BasicBSONDecoder.BSONInput

Summary

Public Constructors
BasicBSONDecoder.BSONInput(InputStream in)
Public Methods
void fill(byte[] b)
void fill(byte[] b, int len)
int getMax()
int getPos()
int numRead()
byte read()
String readCStr()
double readDouble()
int readInt()
int readIntBE()
long readLong()
String readUTF8String()
void setMax(int _max)
Protected Methods
boolean _isAscii(byte b)
int _need(int num)
ensure that there are num bytes to read _pos is where to start reading from
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public BasicBSONDecoder.BSONInput (InputStream in)

Public Methods

public void fill (byte[] b)

Throws
IOException

public void fill (byte[] b, int len)

Throws
IOException

public int getMax ()

public int getPos ()

public int numRead ()

public byte read ()

Throws
IOException

public String readCStr ()

Throws
IOException

public double readDouble ()

Throws
IOException

public int readInt ()

Throws
IOException

public int readIntBE ()

Throws
IOException

public long readLong ()

Throws
IOException

public String readUTF8String ()

Throws
IOException

public void setMax (int _max)

Protected Methods

protected boolean _isAscii (byte b)

protected int _need (int num)

ensure that there are num bytes to read _pos is where to start reading from

Returns
  • where to start reading from
Throws
IOException