protected class BasicBSONDecoder.BSONInput extends Object
构造器和说明 |
---|
BSONInput(InputStream in) |
限定符和类型 | 方法和说明 |
---|---|
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
|
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() |
short |
readShort() |
String |
readUTF8String() |
void |
setMax(int _max) |
public BSONInput(InputStream in)
protected boolean _isAscii(byte b)
protected int _need(int num) throws IOException
IOException
public void fill(byte[] b) throws IOException
IOException
public void fill(byte[] b, int len) throws IOException
IOException
public int getMax()
public int getPos()
public int numRead()
public byte read() throws IOException
IOException
public String readCStr() throws IOException
IOException
public double readDouble() throws IOException
IOException
public int readInt() throws IOException
IOException
public int readIntBE() throws IOException
IOException
public long readLong() throws IOException
IOException
public short readShort() throws IOException
IOException
public String readUTF8String() throws IOException
IOException
public void setMax(int _max)
Copyright © 2018. All rights reserved.