public class BinaryOutputStream extends OutputStream implements BinaryConstants
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
debug |
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 |
|---|
BinaryOutputStream(OutputStream os) |
BinaryOutputStream(OutputStream os,
int byteOrder) |
| Modifier and Type | Method and Description |
|---|---|
int |
getByteCount() |
int |
getByteOrder() |
boolean |
getDebug() |
protected void |
setByteOrder(int byteOrder) |
protected void |
setByteOrder(int a,
int b) |
void |
setDebug(boolean b) |
void |
write(int i) |
void |
write2ByteInteger(int value) |
void |
write2Bytes(int value) |
void |
write3Bytes(int value) |
void |
write4ByteInteger(int value) |
void |
write4Bytes(int value) |
void |
writeByteArray(byte[] bytes) |
close, flush, write, writepublic BinaryOutputStream(OutputStream os, int byteOrder)
public BinaryOutputStream(OutputStream os)
public final void setDebug(boolean b)
public final boolean getDebug()
protected void setByteOrder(int a,
int b)
throws ImageWriteException,
IOException
ImageWriteExceptionIOExceptionprotected void setByteOrder(int byteOrder)
public int getByteOrder()
public void write(int i)
throws IOException
write in class OutputStreamIOExceptionpublic int getByteCount()
public final void write4Bytes(int value)
throws ImageWriteException,
IOException
ImageWriteExceptionIOExceptionpublic final void write3Bytes(int value)
throws ImageWriteException,
IOException
ImageWriteExceptionIOExceptionpublic final void write2Bytes(int value)
throws ImageWriteException,
IOException
ImageWriteExceptionIOExceptionpublic final void write4ByteInteger(int value)
throws ImageWriteException,
IOException
ImageWriteExceptionIOExceptionpublic final void write2ByteInteger(int value)
throws ImageWriteException,
IOException
ImageWriteExceptionIOExceptionpublic final void writeByteArray(byte[] bytes)
throws IOException
IOExceptionCopyright © 2007-2012. All Rights Reserved.