|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Efficient input buffer interface.
Method Summary | |
---|---|
Object |
clone()
Buffers must support clone such that the read pointer on a cloned buffer is independent of the original. |
BigInteger |
nextBigInteger()
Read the next BigInteger out of the buffer. |
boolean |
nextBoolean()
Read the next boolean out of the buffer. |
byte |
nextByte()
Read the next byte out of the buffer. |
void |
nextBytes(byte[] output,
int offset,
int length)
Read the next length bytes out the of the buffer, and
place them in the array output , starting at index
offset . |
void |
nextBytes(OutputBuffer output)
Write all of the remaining bytes in this input buffer into the given output buffer. |
double |
nextDouble()
Read the next long out of the buffer. |
int |
nextInt()
Read the next integer out of the buffer. |
long |
nextLong()
Read the next long out of the buffer. |
QuickSerializable |
nextObject()
Read the next object out of the buffer. |
short |
nextShort()
Read the next short out of the buffer. |
String |
nextString()
Read the next String out of the buffer. |
InputBuffer |
subBuffer(int length)
Create a new input buffer from the read point at this one, containing the next length bytes. |
Method Detail |
public Object clone() throws CloneNotSupportedException
CloneNotSupportedException
public byte nextByte()
public void nextBytes(byte[] output, int offset, int length)
length
bytes out the of the buffer, and
place them in the array output
, starting at index
offset
.
output
- the array into which the bytes are writtenoffset
- the index in output
at which we start
writing byteslength
- the number of bytes to readpublic void nextBytes(OutputBuffer output)
RouteMsg
doesn't have to be
deserialized on an intermediate node in its path. I'm not entirely
happy with the idea, though, so please don't use it for now without
talking to me first about what you're using it for.
output
- the output buffer into which the bytes are writtenpublic short nextShort()
public int nextInt()
public long nextLong()
public double nextDouble()
public boolean nextBoolean()
public String nextString()
public BigInteger nextBigInteger() throws QSException
QSException
public QuickSerializable nextObject() throws QSException
QSException
public InputBuffer subBuffer(int length)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |