public class MyBitOutputStream extends OutputStream implements BinaryConstants
BYTE_ORDER_BIG_ENDIAN, BYTE_ORDER_INTEL, BYTE_ORDER_LEAST_SIGNIFICANT_BYTE, BYTE_ORDER_LITTLE_ENDIAN, BYTE_ORDER_LSB, BYTE_ORDER_MOST_SIGNIFICANT_BYTE, BYTE_ORDER_MOTOROLA, BYTE_ORDER_MSB, BYTE_ORDER_NETWORK| Constructor and Description |
|---|
MyBitOutputStream(OutputStream os,
int byteOrder) |
| Modifier and Type | Method and Description |
|---|---|
void |
flushCache() |
int |
getBytesWritten() |
void |
write(int value) |
void |
writeBits(int value,
int SampleBits) |
close, flush, write, writepublic MyBitOutputStream(OutputStream os, int byteOrder)
public void write(int value)
throws IOException
write in class OutputStreamIOExceptionpublic void writeBits(int value,
int SampleBits)
throws IOException
IOExceptionpublic void flushCache()
throws IOException
IOExceptionpublic int getBytesWritten()
Copyright © 2007-2012. All Rights Reserved.