public class ByteArrayDataInput extends Object implements ExtendedDataInput, MarkableDataInput
| Constructor and Description |
|---|
ByteArrayDataInput(byte[] data) |
ByteArrayDataInput(byte[] data,
int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
int |
length() |
void |
mark(int readAhead) |
int |
position() |
void |
position(int position) |
int |
read(byte[] b) |
AMQShortString |
readAMQShortString() |
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() |
long |
skip(long i) |
int |
skipBytes(int n) |
public ByteArrayDataInput(byte[] data)
public ByteArrayDataInput(byte[] data,
int offset,
int length)
public void readFully(byte[] b,
int off,
int len)
public boolean readBoolean()
readBoolean in interface DataInputpublic int readUnsignedByte()
readUnsignedByte in interface DataInputpublic int readUnsignedShort()
readUnsignedShort in interface DataInputpublic double readDouble()
readDouble in interface DataInputpublic AMQShortString readAMQShortString()
readAMQShortString in interface MarkableDataInputreadAMQShortString in interface ExtendedDataInputpublic int available()
available in interface MarkableDataInputavailable in interface ExtendedDataInputpublic long skip(long i)
skip in interface MarkableDataInputpublic int read(byte[] b)
read in interface MarkableDataInputpublic int position()
position in interface ExtendedDataInputpublic void position(int position)
position in interface ExtendedDataInputpublic int length()
public void mark(int readAhead)
mark in interface MarkableDataInputpublic void reset()
reset in interface MarkableDataInputCopyright © 2006–2015 The Apache Software Foundation. All rights reserved.