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
IOExceptionpublic void fill(byte[] b)
throws IOException
IOExceptionpublic void fill(byte[] b,
int len)
throws IOException
IOExceptionpublic int getMax()
public int getPos()
public int numRead()
public byte read()
throws IOException
IOExceptionpublic String readCStr() throws IOException
IOExceptionpublic double readDouble()
throws IOException
IOExceptionpublic int readInt()
throws IOException
IOExceptionpublic int readIntBE()
throws IOException
IOExceptionpublic long readLong()
throws IOException
IOExceptionpublic short readShort()
throws IOException
IOExceptionpublic String readUTF8String() throws IOException
IOExceptionpublic void setMax(int _max)
Copyright © 2021. All rights reserved.