ostore.util
Class CountBuffer
java.lang.Object
|
+--ostore.util.OutputBufferImpl
|
+--ostore.util.CountBuffer
- All Implemented Interfaces:
- OutputBuffer
- public class CountBuffer
- extends OutputBufferImpl
Counts the bytes in the serialized form of an object.
- Version:
- $Id: CountBuffer.java,v 1.4 2002/06/29 05:56:02 hweather Exp $
- Author:
- Sean C. Rhea
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 |
CountBuffer
public CountBuffer()
size
public int size()
- Returns the number of bytes added to this buffer since its
creation.
add
public void add(byte input)
- Description copied from class:
OutputBufferImpl
- Adds the specified byte to the digest.
- Overrides:
add
in class OutputBufferImpl
add
public void add(byte[] input,
int offset,
int length)
- Description copied from class:
OutputBufferImpl
- Adds
length
bytes of the specified array to the digest,
starting at offset
.
- Overrides:
add
in class OutputBufferImpl
reset
public void reset()