DataOutput that only handles
writeInt(int) and writeLong(long) using the Git conversion
utilities for network byte order handling. This is needed to write
com.googlecode.javaewah.EWAHCompressedBitmap s.
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final OutputStream |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | write(int
the byte to be written. b)Implements java. Writes to the output stream the eight
low-order bits of the argument |
| public void | write(byte[]
the data. b)Implements java. Writes to the output stream all the bytes in array |
| public void | write(byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len)Implements java. Writes |
| public void | writeBoolean(boolean
the boolean to be written. v)Implements java. Writes a |
| public void | writeByte(int
the byte value to be written. v)Implements java. Writes to the output stream the eight low-order
bits of the argument |
| public void | writeBytes(String
the string of bytes to be written. s)Implements java. Writes a string to the output stream. |
| public void | writeChar(int
the v)char value to be written.Implements java. Writes a |
| public void | writeChars(String
the string value to be written. s)Implements java. Writes every character in the string |
| public void | writeDouble(double
the v)double value to be written.Implements java. Writes a |
| public void | writeFloat(float
the v)float value to be written.Implements java. Writes a |
| public void | writeInt(int
the v)int value to be written.Implements java. Writes an |
| public void | writeLong(long
the v)long value to be written.Implements java. Writes a |
| public void | writeShort(int
the v)short value to be written.Implements java. Writes two bytes to the output stream to represent the value of the argument. |
| public void | writeUTF(String
the string value to be written. s)Implements java. Writes two bytes of length information
to the output stream, followed
by the
modified UTF-8
representation
of every character in the string |
| buf | back to summary |
|---|---|
| private final byte[] buf | |
| fd | back to summary |
|---|---|
| private final OutputStream fd | |
| SimpleDataOutput | back to summary |
|---|---|
| pack-priv SimpleDataOutput(OutputStream fd) | |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements java. Doc from java. Writes to the output stream the eight
low-order bits of the argument
| |
| write | back to summary |
|---|---|
| public void write(byte[] b) throws IOException Implements java. Doc from java. Writes to the output stream all the bytes in array
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) throws IOException Implements java. Doc from java. Writes
| |
| writeBoolean | back to summary |
|---|---|
| public void writeBoolean(boolean v) throws IOException Implements java. Doc from java. Writes a
| |
| writeByte | back to summary |
|---|---|
| public void writeByte(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 void writeBytes(String s) throws IOException Implements java. Doc from java. Writes a string to the output stream.
For every character in the string
If
| |
| writeChar | back to summary |
|---|---|
| public void writeChar(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 void writeChars(String s) throws IOException Implements java. Doc from java. Writes every character in the string
| |
| writeDouble | back to summary |
|---|---|
| public void writeDouble(double v) throws IOException Implements java. Doc from java. Writes a
| |
| writeFloat | back to summary |
|---|---|
| public void writeFloat(float v) throws IOException Implements java. Doc from java. Writes a
| |
| writeInt | back to summary |
|---|---|
| public void writeInt(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 void writeLong(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 void writeShort(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 void writeUTF(String s) throws IOException Implements java. Doc from java. Writes two bytes of length information
to the output stream, followed
by the
modified UTF-8
representation
of every character in the string
If a character (byte)c
If a character If a character
First,
the total number of bytes needed to represent
all the characters of The
bytes written by this method may be read
by the
| |