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 TypeMethodDescriptionvoid
close()
void
flush()
int
protected void
setByteOrder
(ByteOrder byteOrder) final void
write
(byte[] bytes) final void
write
(byte[] bytes, int offset, int length) void
write
(int i) final void
write2Bytes
(int value) final void
write3Bytes
(int value) final void
write4Bytes
(int value)
-
Field Details
-
os
-
byteOrder
-
count
private int count
-
-
Constructor Details
-
BinaryOutputStream
-
BinaryOutputStream
-
-
Method Details
-
setByteOrder
-
getByteOrder
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
getByteCount
public int getByteCount() -
write4Bytes
- Throws:
IOException
-
write3Bytes
- Throws:
IOException
-
write2Bytes
- Throws:
IOException
-