org.apache.sanselan.common
Class BinaryOutputStream
java.lang.Object
java.io.OutputStream
org.apache.sanselan.common.BinaryOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable, BinaryConstants
public class BinaryOutputStream
- extends java.io.OutputStream
- implements BinaryConstants
Field Summary |
protected boolean |
debug
|
Methods inherited from class java.io.OutputStream |
close, flush, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
debug
protected boolean debug
BinaryOutputStream
public BinaryOutputStream(java.io.OutputStream os,
int byteOrder)
BinaryOutputStream
public BinaryOutputStream(java.io.OutputStream os)
setDebug
public final void setDebug(boolean b)
getDebug
public final boolean getDebug()
setByteOrder
protected void setByteOrder(int a,
int b)
throws ImageWriteException,
java.io.IOException
- Throws:
ImageWriteException
java.io.IOException
setByteOrder
protected void setByteOrder(int byteOrder)
getByteOrder
public int getByteOrder()
write
public void write(int i)
throws java.io.IOException
- Specified by:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
getByteCount
public int getByteCount()
write4Bytes
public final void write4Bytes(int value)
throws ImageWriteException,
java.io.IOException
- Throws:
ImageWriteException
java.io.IOException
write3Bytes
public final void write3Bytes(int value)
throws ImageWriteException,
java.io.IOException
- Throws:
ImageWriteException
java.io.IOException
write2Bytes
public final void write2Bytes(int value)
throws ImageWriteException,
java.io.IOException
- Throws:
ImageWriteException
java.io.IOException
write4ByteInteger
public final void write4ByteInteger(int value)
throws ImageWriteException,
java.io.IOException
- Throws:
ImageWriteException
java.io.IOException
write2ByteInteger
public final void write2ByteInteger(int value)
throws ImageWriteException,
java.io.IOException
- Throws:
ImageWriteException
java.io.IOException
writeByteArray
public final void writeByteArray(byte[] bytes)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2007-2009. All Rights Reserved.