org.apache.commons.io.input
Class SwappedDataInputStream
java.lang.Object
   java.io.InputStream
java.io.InputStream
       java.io.FilterInputStream
java.io.FilterInputStream
           org.apache.commons.io.input.ProxyInputStream
org.apache.commons.io.input.ProxyInputStream
               org.apache.commons.io.input.SwappedDataInputStream
org.apache.commons.io.input.SwappedDataInputStream
- All Implemented Interfaces: 
- Closeable, 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: 437567 $ $Date: 2006-08-27 23:39:07 -0700 (Sun, 27 Aug 2006) $
 
 
 
 
 
| 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:
- readBooleanin interface- DataInput
 
- 
- Throws:
- IOException
- EOFException
- See Also:
- DataInput.readBoolean()
 
readByte
public byte readByte()
              throws IOException,
                     EOFException
- 
- Specified by:
- readBytein interface- DataInput
 
- 
- Throws:
- IOException
- EOFException
- See Also:
- DataInput.readByte()
 
readChar
public char readChar()
              throws IOException,
                     EOFException
- 
- Specified by:
- readCharin interface- DataInput
 
- 
- Throws:
- IOException
- EOFException
- See Also:
- DataInput.readChar()
 
readDouble
public double readDouble()
                  throws IOException,
                         EOFException
- 
- Specified by:
- readDoublein interface- DataInput
 
- 
- Throws:
- IOException
- EOFException
- See Also:
- DataInput.readDouble()
 
readFloat
public float readFloat()
                throws IOException,
                       EOFException
- 
- Specified by:
- readFloatin interface- DataInput
 
- 
- Throws:
- IOException
- EOFException
- See Also:
- DataInput.readFloat()
 
readFully
public void readFully(byte[] data)
               throws IOException,
                      EOFException
- 
- Specified by:
- readFullyin 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:
- readFullyin interface- DataInput
 
- 
- Throws:
- IOException
- EOFException
- See Also:
- DataInput.readFully(byte[], int, int)
 
readInt
public int readInt()
            throws IOException,
                   EOFException
- 
- Specified by:
- readIntin interface- DataInput
 
- 
- Throws:
- IOException
- EOFException
- See Also:
- DataInput.readInt()
 
readLine
public String readLine()
                throws IOException,
                       EOFException
- Not currently supported.
 
- 
- Specified by:
- readLinein interface- DataInput
 
- 
- Throws:
- IOException
- EOFException
- See Also:
- DataInput.readLine()
 
readLong
public long readLong()
              throws IOException,
                     EOFException
- 
- Specified by:
- readLongin interface- DataInput
 
- 
- Throws:
- IOException
- EOFException
- See Also:
- DataInput.readLong()
 
readShort
public short readShort()
                throws IOException,
                       EOFException
- 
- Specified by:
- readShortin interface- DataInput
 
- 
- Throws:
- IOException
- EOFException
- See Also:
- DataInput.readShort()
 
readUnsignedByte
public int readUnsignedByte()
                     throws IOException,
                            EOFException
- 
- Specified by:
- readUnsignedBytein interface- DataInput
 
- 
- Throws:
- IOException
- EOFException
- See Also:
- DataInput.readUnsignedByte()
 
readUnsignedShort
public int readUnsignedShort()
                      throws IOException,
                             EOFException
- 
- Specified by:
- readUnsignedShortin interface- DataInput
 
- 
- Throws:
- IOException
- EOFException
- See Also:
- DataInput.readUnsignedShort()
 
readUTF
public String readUTF()
               throws IOException,
                      EOFException
- Not currently supported.
 
- 
- Specified by:
- readUTFin interface- DataInput
 
- 
- Throws:
- IOException
- EOFException
- See Also:
- DataInput.readUTF()
 
skipBytes
public int skipBytes(int count)
              throws IOException,
                     EOFException
- 
- Specified by:
- skipBytesin interface- DataInput
 
- 
- Throws:
- IOException
- EOFException
- See Also:
- DataInput.skipBytes(int)
 
Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.