|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.util.QSClone.QSCloneBuffer
This class is private for a reason; using it outside of QSClone will result in your being sacked. :)
Constructor Summary | |
---|---|
QSClone.QSCloneBuffer()
|
Method Summary | |
---|---|
void |
add(BigInteger value)
|
void |
add(boolean b)
|
void |
add(byte input)
Adds the specified byte to the digest. |
void |
add(byte[] value)
Adds the specified byte array to the digest. |
void |
add(byte[] value,
int offset,
int length)
Adds length bytes of the specified array to the digest,
starting at offset . |
void |
add(double x)
|
void |
add(InputBuffer buffer)
Adds the remaining bytes in the given input buffer to this output buffer. |
void |
add(int i)
|
void |
add(long i)
|
void |
add(QuickSerializable value)
Adds the specified object to the digest. |
void |
add(short i)
|
void |
add(String s)
|
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. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public QSClone.QSCloneBuffer()
Method Detail |
public Object clone() throws CloneNotSupportedException
InputBuffer
clone
in interface InputBuffer
clone
in class Object
CloneNotSupportedException
public byte nextByte()
InputBuffer
nextByte
in interface InputBuffer
public void nextBytes(byte[] output, int offset, int length)
InputBuffer
length
bytes out the of the buffer, and
place them in the array output
, starting at index
offset
.
nextBytes
in interface InputBuffer
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)
InputBuffer
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.
nextBytes
in interface InputBuffer
output
- the output buffer into which the bytes are writtenpublic short nextShort()
InputBuffer
nextShort
in interface InputBuffer
public int nextInt()
InputBuffer
nextInt
in interface InputBuffer
public long nextLong()
InputBuffer
nextLong
in interface InputBuffer
public double nextDouble()
InputBuffer
nextDouble
in interface InputBuffer
public boolean nextBoolean()
InputBuffer
nextBoolean
in interface InputBuffer
public String nextString()
InputBuffer
nextString
in interface InputBuffer
public BigInteger nextBigInteger() throws QSException
InputBuffer
nextBigInteger
in interface InputBuffer
QSException
public QuickSerializable nextObject() throws QSException
InputBuffer
nextObject
in interface InputBuffer
QSException
public InputBuffer subBuffer(int length)
InputBuffer
subBuffer
in interface InputBuffer
public void add(byte input)
OutputBuffer
add
in interface OutputBuffer
public void add(byte[] value)
OutputBuffer
add
in interface OutputBuffer
public void add(byte[] value, int offset, int length)
OutputBuffer
length
bytes of the specified array to the digest,
starting at offset
.
add
in interface OutputBuffer
public void add(QuickSerializable value)
OutputBuffer
QuickSerializable.serialize
method on value
; be careful to avoid infinite loops.
add
in interface OutputBuffer
public void add(InputBuffer buffer)
OutputBuffer
add
in interface OutputBuffer
public void add(boolean b)
add
in interface OutputBuffer
public void add(short i)
add
in interface OutputBuffer
public void add(int i)
add
in interface OutputBuffer
public void add(long i)
add
in interface OutputBuffer
public void add(double x)
add
in interface OutputBuffer
public void add(String s)
add
in interface OutputBuffer
public void add(BigInteger value)
add
in interface OutputBuffer
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |