protected class BasicBSONDecoder.BSONInput extends Object
| 构造器和说明 |
|---|
BasicBSONDecoder.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() |
String |
readUTF8String() |
void |
setMax(int _max) |
public BasicBSONDecoder.BSONInput(InputStream in)
protected int _need(int num)
throws IOException
IOExceptionpublic int readInt()
throws IOException
IOExceptionpublic int readIntBE()
throws IOException
IOExceptionpublic long readLong()
throws IOException
IOExceptionpublic double readDouble()
throws IOException
IOExceptionpublic byte read()
throws IOException
IOExceptionpublic void fill(byte[] b)
throws IOException
IOExceptionpublic void fill(byte[] b,
int len)
throws IOException
IOExceptionprotected boolean _isAscii(byte b)
public String readCStr() throws IOException
IOExceptionpublic String readUTF8String() throws IOException
IOExceptionpublic int numRead()
public int getPos()
public int getMax()
public void setMax(int _max)
Copyright © 2015. All Rights Reserved.