Elexis API documentation
Version 2.1.6 as of December 11 2011

com.healthmarketscience.jackcess
Class ByteUtil.ByteStream

java.lang.Object
  extended by com.healthmarketscience.jackcess.ByteUtil.ByteStream
Enclosing class:
ByteUtil

public static class ByteUtil.ByteStream
extends java.lang.Object

Utility byte stream similar to ByteArrayOutputStream but with extended accessibility to the bytes.


Constructor Summary
ByteUtil.ByteStream()
           
ByteUtil.ByteStream(int capacity)
           
 
Method Summary
 byte get(int offset)
           
 byte[] getBytes()
           
 int getLength()
           
 void reset()
           
 void set(int offset, byte b)
           
 byte[] toByteArray()
           
 void trimTrailing(byte minTrimCode, byte maxTrimCode)
           
 void write(byte[] b)
           
 void write(byte[] b, int offset, int length)
           
 void write(int b)
           
 void writeFill(int length, byte b)
           
 void writeTo(ByteUtil.ByteStream out)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteUtil.ByteStream

public ByteUtil.ByteStream()

ByteUtil.ByteStream

public ByteUtil.ByteStream(int capacity)
Method Detail

getLength

public int getLength()

getBytes

public byte[] getBytes()

write

public void write(int b)

write

public void write(byte[] b)

write

public void write(byte[] b,
                  int offset,
                  int length)

get

public byte get(int offset)

set

public void set(int offset,
                byte b)

writeFill

public void writeFill(int length,
                      byte b)

writeTo

public void writeTo(ByteUtil.ByteStream out)

toByteArray

public byte[] toByteArray()

reset

public void reset()

trimTrailing

public void trimTrailing(byte minTrimCode,
                         byte maxTrimCode)

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis