org.apache.commons.io.input
Class SwappedDataInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.commons.io.input.ProxyInputStream
org.apache.commons.io.input.SwappedDataInputStream
- All Implemented Interfaces:
- DataInput
- public class SwappedDataInputStream
- extends ProxyInputStream
- implements DataInput
DataInput for systems relying on little endian data formats.
When read, values will be changed from little endian to big
endian formats for internal usage.
Origin of code: Avalon Excalibur (IO)
- Version:
- CVS $Revision: 155419 $ $Date: 2005-02-26 13:02:41 +0000 (Sat, 26 Feb 2005) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwappedDataInputStream
public SwappedDataInputStream(InputStream input)
- Constructs a SwappedDataInputStream.
- Parameters:
input
- InputStream to read from
readBoolean
public boolean readBoolean()
throws IOException,
EOFException
- Specified by:
readBoolean
in interface DataInput
- Throws:
IOException
EOFException
- See Also:
DataInput.readBoolean()
readByte
public byte readByte()
throws IOException,
EOFException
- Specified by:
readByte
in interface DataInput
- Throws:
IOException
EOFException
- See Also:
DataInput.readByte()
readChar
public char readChar()
throws IOException,
EOFException
- Specified by:
readChar
in interface DataInput
- Throws:
IOException
EOFException
- See Also:
DataInput.readChar()
readDouble
public double readDouble()
throws IOException,
EOFException
- Specified by:
readDouble
in interface DataInput
- Throws:
IOException
EOFException
- See Also:
DataInput.readDouble()
readFloat
public float readFloat()
throws IOException,
EOFException
- Specified by:
readFloat
in interface DataInput
- Throws:
IOException
EOFException
- See Also:
DataInput.readFloat()
readFully
public void readFully(byte[] data)
throws IOException,
EOFException
- Specified by:
readFully
in interface DataInput
- Throws:
IOException
EOFException
- See Also:
DataInput.readFully(byte[])
readFully
public void readFully(byte[] data,
int offset,
int length)
throws IOException,
EOFException
- Specified by:
readFully
in interface DataInput
- Throws:
IOException
EOFException
- See Also:
DataInput.readFully(byte[], int, int)
readInt
public int readInt()
throws IOException,
EOFException
- Specified by:
readInt
in interface DataInput
- Throws:
IOException
EOFException
- See Also:
DataInput.readInt()
readLine
public String readLine()
throws IOException,
EOFException
- Not currently supported.
- Specified by:
readLine
in interface DataInput
- Throws:
IOException
EOFException
- See Also:
DataInput.readLine()
readLong
public long readLong()
throws IOException,
EOFException
- Specified by:
readLong
in interface DataInput
- Throws:
IOException
EOFException
- See Also:
DataInput.readLong()
readShort
public short readShort()
throws IOException,
EOFException
- Specified by:
readShort
in interface DataInput
- Throws:
IOException
EOFException
- See Also:
DataInput.readShort()
readUnsignedByte
public int readUnsignedByte()
throws IOException,
EOFException
- Specified by:
readUnsignedByte
in interface DataInput
- Throws:
IOException
EOFException
- See Also:
DataInput.readUnsignedByte()
readUnsignedShort
public int readUnsignedShort()
throws IOException,
EOFException
- Specified by:
readUnsignedShort
in interface DataInput
- Throws:
IOException
EOFException
- See Also:
DataInput.readUnsignedShort()
readUTF
public String readUTF()
throws IOException,
EOFException
- Not currently supported.
- Specified by:
readUTF
in interface DataInput
- Throws:
IOException
EOFException
- See Also:
DataInput.readUTF()
skipBytes
public int skipBytes(int count)
throws IOException,
EOFException
- Specified by:
skipBytes
in interface DataInput
- Throws:
IOException
EOFException
- See Also:
DataInput.skipBytes(int)
Copyright © 2002-2006 The Apache Software Foundation. All Rights Reserved.