@InterfaceAudience.Private public class ByteBufferDataReader extends DataInputStream
| Constructor and Description |
|---|
ByteBufferDataReader(InputBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasUnReadData() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
String |
readLine() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
reset(InputBuffer buffer) |
int |
skipBytes(int n) |
available, mark, markSupported, read, reset, skippublic ByteBufferDataReader(InputBuffer buffer)
public void reset(InputBuffer buffer)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void readFully(byte[] b)
throws IOException
IOExceptionpublic void readFully(byte[] b,
int off,
int len)
throws IOException
IOExceptionpublic int skipBytes(int n)
throws IOException
IOExceptionpublic boolean readBoolean()
throws IOException
IOExceptionpublic byte readByte()
throws IOException
IOExceptionpublic int readUnsignedByte()
throws IOException
IOExceptionpublic short readShort()
throws IOException
IOExceptionpublic int readUnsignedShort()
throws IOException
IOExceptionpublic char readChar()
throws IOException
IOExceptionpublic int readInt()
throws IOException
IOExceptionpublic long readLong()
throws IOException
IOExceptionpublic float readFloat()
throws IOException
IOExceptionpublic double readDouble()
throws IOException
IOExceptionpublic String readLine() throws IOException
IOExceptionpublic final String readUTF() throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic boolean hasUnReadData()
hasUnReadData in class DataInputStreamCopyright © 2008–2022 Apache Software Foundation. All rights reserved.