ostore.util
Class RandomAccessFileOutputBuffer

java.lang.Object
  |
  +--ostore.util.OutputBufferImpl
        |
        +--ostore.util.RandomAccessFileOutputBuffer
All Implemented Interfaces:
OutputBuffer

public class RandomAccessFileOutputBuffer
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: RandomAccessFileOutputBuffer.java,v 1.1 2002/06/30 04:20:37 srhea Exp $
Author:
Sean C. Rhea

Field Summary
 RandomAccessFile file
           
 
Constructor Summary
RandomAccessFileOutputBuffer(RandomAccessFile file)
           
 
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
 

Field Detail

file

public RandomAccessFile file
Constructor Detail

RandomAccessFileOutputBuffer

public RandomAccessFileOutputBuffer(RandomAccessFile file)
Method Detail

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