Origin of code: Avalon Excalibur (IO)
| Access | Constructor and Description |
|---|---|
| public | SwappedDataInputStream(InputStream
InputStream to read from input)Constructs a SwappedDataInputStream. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | readBoolean()
Implements java. true if that byte is nonzero,
false if that byte is zero.
|
| public byte | |
| public char | |
| public double | readDouble()
Implements java. double value.
|
| public float | readFloat()
Implements java. float value.
|
| public void | readFully(byte[]
the buffer into which the data is read. data)Implements java. b.
|
| public void | readFully(byte[]
the buffer into which the data is read. data, int an int specifying the offset in the data array offset, int b.an int specifying the number of bytes to read. length)Implements java. len
bytes from
an input stream.
|
| public int | |
| public String | |
| public long | |
| public short | |
| public int | readUnsignedByte()
Implements java. int, and returns
the result, which is therefore in the range
0
through 255.
|
| public int | readUnsignedShort()
Implements java. int value in the range 0
through 65535.
|
| public String | |
| public int | skipBytes(int
the number of bytes to be skipped. count)Implements java. n bytes
of data from the input
stream, discarding the skipped bytes.
|
| SwappedDataInputStream | back to summary |
|---|---|
| public SwappedDataInputStream(InputStream input) Constructs a SwappedDataInputStream.
| |
| readBoolean | back to summary |
|---|---|
| public boolean readBoolean() throws IOException, EOFException Implements java. Doc from java. Reads one input byte and returns
| |
| readByte | back to summary |
|---|---|
| public byte readByte() throws IOException, EOFException Implements java. Doc from java. Reads and returns one input byte.
The byte is treated as a signed value in
the range
| |
| readChar | back to summary |
|---|---|
| public char readChar() throws IOException, EOFException Implements java. Doc from java. Reads two input bytes and returns a
This method
is suitable for reading bytes written by
the writeChar method of interface
DataOutput.
| |
| readDouble | back to summary |
|---|---|
| public double readDouble() throws IOException, EOFException Implements java. Doc from java. Reads eight input bytes and returns
a
| |
| readFloat | back to summary |
|---|---|
| public float readFloat() throws IOException, EOFException Implements java. Doc from java. Reads four input bytes and returns
a
| |
| readFully | back to summary |
|---|---|
| public void readFully(byte[] data) throws IOException, EOFException Implements java. Doc from java. Reads some bytes from an input
stream and stores them into the buffer
array This method blocks until one of the following conditions occurs:
If
| |
| readFully | back to summary |
|---|---|
| public void readFully(byte[] data, int offset, int length) throws IOException, EOFException Implements java. Doc from java. Reads This method blocks until one of the following conditions occurs:
If
| |
| readInt | back to summary |
|---|---|
| public int readInt() throws IOException, EOFException Implements java. Doc from java. Reads four input bytes and returns an
This method is suitable
for reading bytes written by the writeInt
method of interface DataOutput.
| |
| readLine | back to summary |
|---|---|
| public String readLine() throws IOException, EOFException Implements java. Not currently supported.
| |
| readLong | back to summary |
|---|---|
| public long readLong() throws IOException, EOFException Implements java. Doc from java. Reads eight input bytes and returns
a
This method is suitable
for reading bytes written by the
| |
| readShort | back to summary |
|---|---|
| public short readShort() throws IOException, EOFException Implements java. Doc from java. Reads two input bytes and returns
a
This method
is suitable for reading the bytes written
by the writeShort method of
interface DataOutput.
| |
| readUnsignedByte | back to summary |
|---|---|
| public int readUnsignedByte() throws IOException, EOFException Implements java. Doc from java. Reads one input byte, zero-extends
it to type
| |
| readUnsignedShort | back to summary |
|---|---|
| public int readUnsignedShort() throws IOException, EOFException Implements java. Doc from java. Reads two input bytes and returns
an
This method is suitable for reading the bytes
written by the writeShort method
of interface DataOutput if
the argument to writeShort
was intended to be a value in the range
0 through 65535.
| |
| readUTF | back to summary |
|---|---|
| public String readUTF() throws IOException, EOFException Implements java. Not currently supported.
| |
| skipBytes | back to summary |
|---|---|
| public int skipBytes(int count) throws IOException, EOFException Implements java. Doc from java. Makes an attempt to skip over
| |