ostore.archive
Class ArchiveCountBuffer
java.lang.Object
|
+--ostore.util.OutputBufferImpl
|
+--ostore.util.ByteArrayOutputBuffer
|
+--ostore.archive.ArchiveByteArrayOutputBuffer
|
+--ostore.archive.ArchiveCountBuffer
- All Implemented Interfaces:
- OutputBuffer
- public class ArchiveCountBuffer
- extends ArchiveByteArrayOutputBuffer
Counts the bytes in the serialized form of an object.
- Version:
- $Id: ArchiveCountBuffer.java,v 1.1 2002/07/20 16:21:46 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 |
ArchiveCountBuffer
public ArchiveCountBuffer()
size
public int size()
- Returns the number of bytes added to this buffer since its
creation.
- Overrides:
size in class ByteArrayOutputBuffer
add
public void add(byte input)
- Description copied from class:
OutputBufferImpl
- Adds the specified byte to the digest.
- Specified by:
add in interface OutputBuffer- Overrides:
add in class ByteArrayOutputBuffer
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.
- Specified by:
add in interface OutputBuffer- Overrides:
add in class ByteArrayOutputBuffer
reset
public void reset()