org.pentaho.reporting.libraries.fonts.encoding

Class ByteStream

public class ByteStream extends Object

This is a wrapper around a byte buffer to allows streaming operations. This preserves my sanity, as managing arrays with irregular encodings is hell.

Author: Thomas Morgner

Constructor Summary
ByteStream(ByteBuffer buffer, int increment)
Method Summary
voidclose()
byteget()
intgetReadSize()
voidput(byte b)
voidput(byte[] b)

Constructor Detail

ByteStream

public ByteStream(ByteBuffer buffer, int increment)

Method Detail

close

public void close()

get

public byte get()

getReadSize

public int getReadSize()

put

public void put(byte b)

put

public void put(byte[] b)