org.apache.commons.io.input
public class SwappedDataInputStream extends ProxyInputStream implements DataInput
Origin of code: Avalon Excalibur (IO)
Version: CVS $Revision: 610010 $ $Date: 2008-01-08 14:50:59 +0000 (Tue, 08 Jan 2008) $
Constructor Summary | |
---|---|
SwappedDataInputStream(InputStream input)
Constructs a SwappedDataInputStream.
|
Method Summary | |
---|---|
boolean | readBoolean()
Return readByte == 0 |
byte | readByte()
Invokes the delegate's read() method. |
char | readChar()
Reads a character delegating to readShort. |
double | readDouble()
Delegates to readSwappedDouble. |
float | readFloat()
Delegates to readSwappedFloat. |
void | readFully(byte[] data)
Invokes the delegate's read(byte[] data, int, int) method.
|
void | readFully(byte[] data, int offset, int length)
Invokes the delegate's read(byte[] data, int, int) method.
|
int | readInt()
Delegates to readSwappedInteger. |
String | readLine()
Not currently supported - throws UnsupportedOperationException. |
long | readLong()
Delegates to readSwappedLong. |
short | readShort()
Delegates to readSwappedShort. |
int | readUnsignedByte()
Invokes the delegate's read() method. |
int | readUnsignedShort()
Delegates to readSwappedUnsignedShort. |
String | readUTF()
Not currently supported - throws UnsupportedOperationException. |
int | skipBytes(int count)
Invokes the delegate's skip(int) method. |
Parameters: input InputStream to read from
readByte == 0
Returns: the true if the byte read is zero, otherwise false
Throws: IOException if an I/O error occurs EOFException if an end of file is reached unexpectedly
read()
method.Returns: the byte read or -1 if the end of stream
Throws: IOException if an I/O error occurs EOFException if an end of file is reached unexpectedly
Returns: the byte read or -1 if the end of stream
Throws: IOException if an I/O error occurs EOFException if an end of file is reached unexpectedly
Returns: the read long
Throws: IOException if an I/O error occurs EOFException if an end of file is reached unexpectedly
Returns: the read long
Throws: IOException if an I/O error occurs EOFException if an end of file is reached unexpectedly
read(byte[] data, int, int)
method.
Parameters: data the buffer to read the bytes into
Throws: EOFException if an end of file is reached unexpectedly IOException if an I/O error occurs
read(byte[] data, int, int)
method.
Parameters: data the buffer to read the bytes into offset The start offset length The number of bytes to read
Throws: EOFException if an end of file is reached unexpectedly IOException if an I/O error occurs
Returns: the read long
Throws: EOFException if an end of file is reached unexpectedly IOException if an I/O error occurs
Returns: the line read
Throws: EOFException if an end of file is reached unexpectedly IOException if an I/O error occurs
Returns: the read long
Throws: EOFException if an end of file is reached unexpectedly IOException if an I/O error occurs
Returns: the read long
Throws: EOFException if an end of file is reached unexpectedly IOException if an I/O error occurs
read()
method.Returns: the byte read or -1 if the end of stream
Throws: EOFException if an end of file is reached unexpectedly IOException if an I/O error occurs
Returns: the read long
Throws: EOFException if an end of file is reached unexpectedly IOException if an I/O error occurs
Returns: UTF String read
Throws: EOFException if an end of file is reached unexpectedly IOException if an I/O error occurs
skip(int)
method.Parameters: count the number of bytes to skip
Returns: the number of bytes to skipped or -1 if the end of stream
Throws: EOFException if an end of file is reached unexpectedly IOException if an I/O error occurs