juju.reattore.io
Interface ByteSink

All Superinterfaces:
Sink
All Known Implementing Classes:
ByteSourceSink

public interface ByteSink
extends Sink

A sink that nativly handles bytes.

See Also:
Sink

Method Summary
 void put(byte[] from, int offset, int length)
          Bulk put operation.
 void put(int toWrite)
          Writes a byte to the stream.
 int size()
          Returns the number of elements in the stream.
 

Method Detail

put

public void put(int toWrite)
Writes a byte to the stream.

Parameters:
toWrite - The byte to write.

put

public void put(byte[] from,
                int offset,
                int length)
Bulk put operation.

Parameters:
from - The buffer to copy from.
offset - The offset in the buffer to begin reading from.
length - The number of elements to write.

size

public int size()
Returns the number of elements in the stream.

Returns:
Number of elements in the stream.


Copyright © 2002-2003 Michael Hope. All Rights Reserved.