ostore.util
Class StreamOutputBuffer
java.lang.Object
|
+--ostore.util.OutputBufferImpl
|
+--ostore.util.StreamOutputBuffer
- All Implemented Interfaces:
- OutputBuffer
- public class StreamOutputBuffer
- extends OutputBufferImpl
For use in testing only; not efficient at all, and not completely
implemented either. See ostore.mac.HMACDHHandler for an example use.
- Version:
- $Id: StreamOutputBuffer.java,v 1.1 2002/06/30 04:20:37 srhea 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 . |
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 |
stream
protected OutputStream stream
StreamOutputBuffer
public StreamOutputBuffer(OutputStream stream)
add
public void add(byte input)
- Description copied from class:
OutputBufferImpl
- Adds the specified byte to the digest.
- Specified by:
add
in interface OutputBuffer
- Specified by:
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
.
- Specified by:
add
in interface OutputBuffer
- Specified by:
add
in class OutputBufferImpl