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
- Throws:
IOException
EOFException
readByte
public byte readByte()
throws IOException,
EOFException
- Specified by:
readByte
in interface DataInput
- Throws:
IOException
EOFException
readUnsignedByte
public int readUnsignedByte()
throws IOException,
EOFException
- Specified by:
readUnsignedByte
in interface DataInput
- Throws:
IOException
EOFException
readChar
public char readChar()
throws IOException,
EOFException
- Specified by:
readChar
in interface DataInput
- Throws:
IOException
EOFException
readShort
public short readShort()
throws IOException,
EOFException
- Specified by:
readShort
in interface DataInput
- Throws:
IOException
EOFException
readUnsignedShort
public int readUnsignedShort()
throws IOException,
EOFException
- Specified by:
readUnsignedShort
in interface DataInput
- Throws:
IOException
EOFException
readInt
public int readInt()
throws IOException,
EOFException
- Specified by:
readInt
in interface DataInput
- Throws:
IOException
EOFException
readLong
public long readLong()
throws IOException,
EOFException
- Specified by:
readLong
in interface DataInput
- Throws:
IOException
EOFException
readFloat
public float readFloat()
throws IOException,
EOFException
- Specified by:
readFloat
in interface DataInput
- Throws:
IOException
EOFException
readDouble
public double readDouble()
throws IOException,
EOFException
- Specified by:
readDouble
in interface DataInput
- Throws:
IOException
EOFException
readFully
public void readFully(byte[] data)
throws IOException,
EOFException
- Specified by:
readFully
in interface DataInput
- Throws:
IOException
EOFException
readFully
public void readFully(byte[] data,
int offset,
int length)
throws IOException,
EOFException
- Specified by:
readFully
in interface DataInput
- Throws:
IOException
EOFException
readLine
public String readLine()
throws IOException,
EOFException
- Specified by:
readLine
in interface DataInput
- Throws:
IOException
EOFException
readUTF
public String readUTF()
throws IOException,
EOFException
- Specified by:
readUTF
in interface DataInput
- Throws:
IOException
EOFException
skipBytes
public int skipBytes(int count)
throws IOException,
EOFException
- Specified by:
skipBytes
in interface DataInput
- Throws:
IOException
EOFException
available
public int available()
throws IOException,
EOFException
- Throws:
IOException
EOFException
read
public int read()
throws IOException,
EOFException
- Throws:
IOException
EOFException
read
public int read(byte[] data)
throws IOException,
EOFException
- Throws:
IOException
EOFException
read
public int read(byte[] data,
int offset,
int length)
throws IOException,
EOFException
- Throws:
IOException
EOFException
skip
public long skip(long count)
throws IOException,
EOFException
- Throws:
IOException
EOFException
mark
public void mark(int readLimit)
markSupported
public boolean markSupported()
reset
public void reset()
throws IOException
- Throws:
IOException
close
public void close()
throws IOException,
EOFException
- Throws:
IOException
EOFException
Copyright © 1999-2007 Codehaus. All Rights Reserved.