com.healthmarketscience.jackcess.impl
Class ByteUtil.ByteStream
java.lang.Object
java.io.OutputStream
com.healthmarketscience.jackcess.impl.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, 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()
ensureNewCapacity
protected void ensureNewCapacity(int numBytes)
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-2017 Health Market Science. All Rights Reserved.