Class BinaryOutputStream
java.lang.Object
java.io.OutputStream
org.apache.commons.imaging.common.BinaryOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()intprotected voidsetByteOrder(ByteOrder byteOrder) final voidwrite(byte[] bytes) final voidwrite(byte[] bytes, int offset, int length) voidwrite(int i) final voidwrite2Bytes(int value) final voidwrite3Bytes(int value) final voidwrite4Bytes(int value)
-
Field Details
-
os
-
byteOrder
-
count
private int count
-
-
Constructor Details
-
BinaryOutputStream
-
BinaryOutputStream
-
-
Method Details
-
setByteOrder
-
getByteOrder
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
getByteCount
public int getByteCount() -
write4Bytes
- Throws:
IOException
-
write3Bytes
- Throws:
IOException
-
write2Bytes
- Throws:
IOException
-