|
|||||||||||
| 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 InputBufferclone in class ObjectCloneNotSupportedExceptionpublic byte nextByte()
InputBuffer
nextByte in interface InputBuffer
public void nextBytes(byte[] output,
int offset,
int length)
InputBufferlength bytes out the of the buffer, and
place them in the array output, starting at index
offset.
nextBytes in interface InputBufferoutput - 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)
InputBufferRouteMsg 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 InputBufferoutput - the output buffer into which the bytes are writtenpublic short nextShort()
InputBuffer
nextShort in interface InputBufferpublic int nextInt()
InputBuffer
nextInt in interface InputBufferpublic long nextLong()
InputBuffer
nextLong in interface InputBufferpublic double nextDouble()
InputBuffer
nextDouble in interface InputBufferpublic boolean nextBoolean()
InputBuffer
nextBoolean in interface InputBufferpublic String nextString()
InputBuffer
nextString in interface InputBuffer
public BigInteger nextBigInteger()
throws QSException
InputBuffer
nextBigInteger in interface InputBufferQSException
public QuickSerializable nextObject()
throws QSException
InputBuffer
nextObject in interface InputBufferQSExceptionpublic InputBuffer subBuffer(int length)
InputBuffer
subBuffer in interface InputBufferpublic void add(byte input)
OutputBuffer
add in interface OutputBufferpublic void add(byte[] value)
OutputBuffer
add in interface OutputBuffer
public void add(byte[] value,
int offset,
int length)
OutputBufferlength bytes of the specified array to the digest,
starting at offset.
add in interface OutputBufferpublic void add(QuickSerializable value)
OutputBufferQuickSerializable.serialize
method on value; be careful to avoid infinite loops.
add in interface OutputBufferpublic void add(InputBuffer buffer)
OutputBuffer
add in interface OutputBufferpublic void add(boolean b)
add in interface OutputBufferpublic void add(short i)
add in interface OutputBufferpublic void add(int i)
add in interface OutputBufferpublic void add(long i)
add in interface OutputBufferpublic void add(double x)
add in interface OutputBufferpublic void add(String s)
add in interface OutputBufferpublic void add(BigInteger value)
add in interface OutputBufferpublic String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||