|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.util.OutputBufferImpl | +--ostore.util.CountBuffer
Counts the bytes in the serialized form of an object.
Constructor Summary | |
---|---|
CountBuffer()
|
Method Summary | |
---|---|
void |
add(byte input)
Adds the specified byte to the digest. |
void |
add(byte[] input,
int offset,
int length)
Adds length bytes of the specified array to the digest,
starting at offset . |
void |
reset()
|
int |
size()
Returns the number of bytes added to this buffer since its creation. |
Methods inherited from class ostore.util.OutputBufferImpl |
---|
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CountBuffer()
Method Detail |
public int size()
public void add(byte input)
OutputBufferImpl
add
in interface OutputBuffer
add
in class OutputBufferImpl
public void add(byte[] input, int offset, int length)
OutputBufferImpl
length
bytes of the specified array to the digest,
starting at offset
.
add
in interface OutputBuffer
add
in class OutputBufferImpl
public void reset()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |