This is the sister class of the DataOutputStream which allows for writing of java native datatypes to an output stream with the datatypes stored in big endian byte order.
This class implements the minimum required and calls DataOutputStream for some of the required methods for DataOutput.
Not all methods are implemented due to lack of immediate requirement for that functionality. It is not clear if it is ever going to be functionally required to be able to read UTF data in a LittleEndianManner
| Modifier and Type | Field and Description |
|---|---|
| pack-priv DataOutputStream | dataOut
To reuse some of the non endian dependent methods from DataOutputStream's methods. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| public final synchronized void | write(final byte[]
the data. b)Overrides java. Implements java. b.
|
| public final synchronized void | write(final byte[]
the data. b, final int the start offset in the data. off, final int the number of bytes to write. len)Overrides java. Implements java. len bytes from array
b, in order, to
the output stream.
|
| public final void | write(final int
the byte to be written. b)Overrides java. Implements java. b.
|
| public final void | writeBoolean(final boolean
the boolean to be written. v)Implements java. boolean value to this output stream.
|
| public final void | writeByte(final int
the byte value to be written. v)Implements java. v.
|
| public final void | writeBytes(final String
the string of bytes to be written. s)Implements java. |
| public final void | writeChar(final int
the v)char value to be written.Implements java. char value, which
is comprised of two bytes, to the
output stream.
|
| public final void | writeChars(final String
the string value to be written. s)Implements java. |
| public final void | writeDouble(final double
the v)double value to be written.Implements java. double value,
which is comprised of eight bytes, to the output stream.
|
| public final void | writeFloat(final float
the v)float value to be written.Implements java. float value,
which is comprised of four bytes, to the output stream.
|
| public final void | writeInt(final int
the v)int value to be written.Implements java. int value, which is
comprised of four bytes, to the output stream.
|
| public final void | writeLong(final long
the v)long value to be written.Implements java. long value, which is
comprised of eight bytes, to the output stream.
|
| public final void | writeShort(final int
the v)short value to be written.Implements java. |
| public final void | writeUTF(final String
the string value to be written. s)Implements java. |
| dataOut | back to summary |
|---|---|
| pack-priv DataOutputStream dataOut To reuse some of the non endian dependent methods from DataOutputStream's methods. | |
| LEDataOutputStream | back to summary |
|---|---|
| public LEDataOutputStream(final OutputStream out) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources associated with the stream.
| |
| write | back to summary |
|---|---|
| public final synchronized void write(final byte[] b) throws IOException Overrides java. Implements java. Doc from java. Writes to the output stream all the bytes in array
| |
| write | back to summary |
|---|---|
| public final synchronized void write(final byte[] b, final int off, final int len) throws IOException Overrides java. Implements java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public final void write(final int b) throws IOException Overrides java. Implements java. Doc from java. Writes to the output stream the eight
low-order bits of the argument
| |
| writeBoolean | back to summary |
|---|---|
| public final void writeBoolean(final boolean v) throws IOException Implements java. Doc from java. Writes a
| |
| writeByte | back to summary |
|---|---|
| public final void writeByte(final int v) throws IOException Implements java. Doc from java. Writes to the output stream the eight low-order
bits of the argument
| |
| writeBytes | back to summary |
|---|---|
| public final void writeBytes(final String s) throws IOException Implements java. Don't call this -- not implemented
| |
| writeChar | back to summary |
|---|---|
| public final void writeChar(final int v) throws IOException Implements java. Doc from java. Writes a
The bytes written by this method may be
read by the
| |
| writeChars | back to summary |
|---|---|
| public final void writeChars(final String s) throws IOException Implements java. Don't call this -- not implemented
| |
| writeDouble | back to summary |
|---|---|
| public final void writeDouble(final double v) throws IOException Implements java. Doc from java. Writes a
| |
| writeFloat | back to summary |
|---|---|
| public final void writeFloat(final float v) throws IOException Implements java. Doc from java. Writes a
| |
| writeInt | back to summary |
|---|---|
| public final void writeInt(final int v) throws IOException Implements java. Doc from java. Writes an
The bytes written by this method may be read
by the
| |
| writeLong | back to summary |
|---|---|
| public final void writeLong(final long v) throws IOException Implements java. Doc from java. Writes a
The bytes written by this method may be
read by the
| |
| writeShort | back to summary |
|---|---|
| public final void writeShort(final int v) throws IOException Implements java. Doc from java. Writes two bytes to the output stream to represent the value of the argument. The byte values to be written, in the order shown, are:
The bytes written by this method may be
read by the
| |
| writeUTF | back to summary |
|---|---|
| public final void writeUTF(final String s) throws IOException Implements java. Don't call this -- not implemented
| |