org.marre.util
Class BitArrayOutputStream
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
org.marre.util.BitArrayOutputStream
- public class BitArrayOutputStream
- extends java.io.ByteArrayOutputStream
Fields inherited from class java.io.ByteArrayOutputStream |
buf, count |
Methods inherited from class java.io.ByteArrayOutputStream |
size, toString, toString, toString, writeTo |
Methods inherited from class java.io.OutputStream |
flush |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BitArrayOutputStream
public BitArrayOutputStream(int size)
- Default constructor.
toByteArray
public byte[] toByteArray()
reset
public void reset()
flushByte
public void flushByte()
writeBits
public void writeBits(byte[] data,
int nBits)
writeBits
public void writeBits(int data,
int nBits)
writeBit
public void writeBit(int bit)
write
public void write(int data)
write
public void write(byte[] data)
write
public void write(byte[] data,
int off,
int len)
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2002-2005 Markus Eriksson. All Rights Reserved.