public class LittleEndianOutputStreamWriteable extends Object implements IBinaryWriteable
OutputStreamWriteable, but only supports ByteOrder.LITTLE_ENDIAN.| Constructor and Description |
|---|
LittleEndianOutputStreamWriteable(OutputStream out)
Creates new
LittleEndianOutputStreamWriteable that wraps the given
OutputStream. |
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
flush.
|
OutputStream |
getStream()
Returns the
OutputStream this LittleEndianOutputStreamWriteable writes to. |
ByteOrder |
order()
order.
|
void |
order(ByteOrder order)
Deprecated.
|
void |
put(byte value)
put.
|
void |
put(byte[] src)
put.
|
void |
put(byte[] src,
int offset,
int length)
put.
|
void |
put(ByteBuffer src)
Put n bytes from the remaining of the byte array.
|
void |
put(ByteBuffer src,
int length)
Put n bytes from the remaining of the byte buffer.
|
void |
putDouble(double value)
putDouble.
|
void |
putFloat(float value)
putFloat.
|
void |
putInt(int value)
putInt.
|
void |
putLong(long value)
putLong.
|
void |
putShort(short value)
putShort.
|
public LittleEndianOutputStreamWriteable(OutputStream out)
LittleEndianOutputStreamWriteable that wraps the given
OutputStream.public void flush()
throws IOException
IBinaryWriteableflush.
flush in interface IBinaryWriteableIOException - if any.public OutputStream getStream()
OutputStream this LittleEndianOutputStreamWriteable writes to.public ByteOrder order()
IBinaryWriteableorder.
order in interface IBinaryWriteableByteOrder object.@Deprecated public void order(ByteOrder order)
IBinaryWriteableorder.
order in interface IBinaryWriteableorder - a ByteOrder object.public void put(byte value)
throws IOException
IBinaryWriteableput.
put in interface IBinaryWriteablevalue - a byte.IOException - if any.public void put(byte[] src)
throws IOException
IBinaryWriteableput.
put in interface IBinaryWriteablesrc - an array of byte.IOException - if any.public void put(byte[] src,
int offset,
int length)
throws IOException
IBinaryWriteableput.
put in interface IBinaryWriteablesrc - an array of byte.offset - a int.length - a int.IOException - if any.public void put(ByteBuffer src) throws IOException
IBinaryWriteableput in interface IBinaryWriteablesrc - a ByteBuffer object.IOException - if any.public void put(ByteBuffer src, int length) throws IOException
IBinaryWriteableput in interface IBinaryWriteablesrc - a ByteBuffer object.length - a int.IOException - if any.public void putDouble(double value)
throws IOException
IBinaryWriteableputDouble.
putDouble in interface IBinaryWriteablevalue - a double.IOException - if any.public void putFloat(float value)
throws IOException
IBinaryWriteableputFloat.
putFloat in interface IBinaryWriteablevalue - a float.IOException - if any.public void putInt(int value)
throws IOException
IBinaryWriteableputInt.
putInt in interface IBinaryWriteablevalue - a int.IOException - if any.public void putLong(long value)
throws IOException
IBinaryWriteableputLong.
putLong in interface IBinaryWriteablevalue - a long.IOException - if any.public void putShort(short value)
throws IOException
IBinaryWriteableputShort.
putShort in interface IBinaryWriteablevalue - a short.IOException - if any.Copyright © 2026. All rights reserved.