com.healthmarketscience.jackcess
Class ByteUtil.ByteStream
java.lang.Object
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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteUtil.ByteStream
public ByteUtil.ByteStream()
ByteUtil.ByteStream
public ByteUtil.ByteStream(int capacity)
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)
Copyright 2005-2011 by Gerry Weirich, Elexis