org.codehaus.spice.salt.io
Class SwappedDataInputStream
java.lang.Object
|
+--org.codehaus.spice.salt.io.SwappedDataInputStream
- All Implemented Interfaces:
- DataInput
- public class SwappedDataInputStream
- extends Object
- implements DataInput
DataInput for systems relying on little endian data formats.
- Author:
- Peter Donald
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwappedDataInputStream
public SwappedDataInputStream(InputStream input)
readBoolean
public boolean readBoolean()
throws IOException,
EOFException
- Specified by:
readBoolean in interface DataInput
IOException
EOFException
readByte
public byte readByte()
throws IOException,
EOFException
- Specified by:
readByte in interface DataInput
IOException
EOFException
readUnsignedByte
public int readUnsignedByte()
throws IOException,
EOFException
- Specified by:
readUnsignedByte in interface DataInput
IOException
EOFException
readChar
public char readChar()
throws IOException,
EOFException
- Specified by:
readChar in interface DataInput
IOException
EOFException
readShort
public short readShort()
throws IOException,
EOFException
- Specified by:
readShort in interface DataInput
IOException
EOFException
readUnsignedShort
public int readUnsignedShort()
throws IOException,
EOFException
- Specified by:
readUnsignedShort in interface DataInput
IOException
EOFException
readInt
public int readInt()
throws IOException,
EOFException
- Specified by:
readInt in interface DataInput
IOException
EOFException
readLong
public long readLong()
throws IOException,
EOFException
- Specified by:
readLong in interface DataInput
IOException
EOFException
readFloat
public float readFloat()
throws IOException,
EOFException
- Specified by:
readFloat in interface DataInput
IOException
EOFException
readDouble
public double readDouble()
throws IOException,
EOFException
- Specified by:
readDouble in interface DataInput
IOException
EOFException
readFully
public void readFully(byte[] data)
throws IOException,
EOFException
- Specified by:
readFully in interface DataInput
IOException
EOFException
readFully
public void readFully(byte[] data,
int offset,
int length)
throws IOException,
EOFException
- Specified by:
readFully in interface DataInput
IOException
EOFException
readLine
public String readLine()
throws IOException,
EOFException
- Specified by:
readLine in interface DataInput
IOException
EOFException
readUTF
public String readUTF()
throws IOException,
EOFException
- Specified by:
readUTF in interface DataInput
IOException
EOFException
skipBytes
public int skipBytes(int count)
throws IOException,
EOFException
- Specified by:
skipBytes in interface DataInput
IOException
EOFException
available
public int available()
throws IOException,
EOFException
IOException
EOFException
read
public int read()
throws IOException,
EOFException
IOException
EOFException
read
public int read(byte[] data)
throws IOException,
EOFException
IOException
EOFException
read
public int read(byte[] data,
int offset,
int length)
throws IOException,
EOFException
IOException
EOFException
skip
public long skip(long count)
throws IOException,
EOFException
IOException
EOFException
mark
public void mark(int readLimit)
markSupported
public boolean markSupported()
reset
public void reset()
throws IOException
IOException
close
public void close()
throws IOException,
EOFException
IOException
EOFException
Copyright © 1999-2003 Codehaus. All Rights Reserved.