com.healthmarketscience.jackcess
Class ByteUtil.ByteStream
java.lang.Object
java.io.OutputStream
com.healthmarketscience.jackcess.ByteUtil.ByteStream
- All Implemented Interfaces:
- Closeable, Flushable
- Enclosing class:
- ByteUtil
public static class ByteUtil.ByteStream
- extends OutputStream
Utility byte stream similar to ByteArrayOutputStream but with extended
accessibility to the bytes.
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)
- Specified by:
write
in class OutputStream
write
public void write(byte[] b)
- Overrides:
write
in class OutputStream
write
public void write(byte[] b,
int offset,
int length)
- Overrides:
write
in class OutputStream
get
public byte get(int offset)
set
public void set(int offset,
byte b)
writeFill
public void writeFill(int length,
byte b)
skip
public void skip(int n)
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-2013 Health Market Science. All Rights Reserved.