ostore.network
Class NetworkOutputBuffer

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

public class NetworkOutputBuffer
extends OutputBufferImpl

Efficient buffer.

Version:
$Id: NetworkOutputBuffer.java,v 1.9 2002/09/08 07:37:18 srhea Exp $
Author:
Sean C. Rhea

Constructor Summary
NetworkOutputBuffer()
           
 
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 enqueue(ATcpConnection conn)
           
 void overwrite(int offset, int value)
           
 int size()
           
 String toString()
           
 
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, wait, wait, wait
 

Constructor Detail

NetworkOutputBuffer

public NetworkOutputBuffer()
Method Detail

size

public int size()

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

overwrite

public void overwrite(int offset,
                      int value)

enqueue

public void enqueue(ATcpConnection conn)
             throws SinkException
SinkException

toString

public String toString()
Overrides:
toString in class Object