org.apache.avalon.excalibur.io
Class SwappedDataInputStream

java.lang.Object
  |
  +--org.apache.avalon.excalibur.io.SwappedDataInputStream
All Implemented Interfaces:
DataInput

public class SwappedDataInputStream
extends Object
implements DataInput

DataInput for systems relying on little endian data formats.

Since:
4.0
Version:
CVS $Revision: 1.5 $ $Date: 2002/03/16 00:04:01 $
Author:
Peter Donald

Constructor Summary
SwappedDataInputStream(InputStream input)
           
 
Method Summary
 int available()
           
 void close()
           
 void mark(int readLimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] data)
           
 int read(byte[] data, int offset, int length)
           
 boolean readBoolean()
           
 byte readByte()
           
 char readChar()
           
 double readDouble()
           
 float readFloat()
           
 void readFully(byte[] data)
           
 void readFully(byte[] data, int offset, int length)
           
 int readInt()
           
 String readLine()
           
 long readLong()
           
 short readShort()
           
 int readUnsignedByte()
           
 int readUnsignedShort()
           
 String readUTF()
           
 void reset()
           
 long skip(long count)
           
 int skipBytes(int count)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwappedDataInputStream

public SwappedDataInputStream(InputStream input)
Method Detail

readBoolean

public boolean readBoolean()
                    throws IOException,
                           EOFException
Specified by:
readBoolean in interface DataInput

readByte

public byte readByte()
              throws IOException,
                     EOFException
Specified by:
readByte in interface DataInput

readChar

public char readChar()
              throws IOException,
                     EOFException
Specified by:
readChar in interface DataInput

readDouble

public double readDouble()
                  throws IOException,
                         EOFException
Specified by:
readDouble in interface DataInput

readFloat

public float readFloat()
                throws IOException,
                       EOFException
Specified by:
readFloat in interface DataInput

readFully

public void readFully(byte[] data)
               throws IOException,
                      EOFException
Specified by:
readFully in interface DataInput

readFully

public void readFully(byte[] data,
                      int offset,
                      int length)
               throws IOException,
                      EOFException
Specified by:
readFully in interface DataInput

readInt

public int readInt()
            throws IOException,
                   EOFException
Specified by:
readInt in interface DataInput

readLine

public String readLine()
                throws IOException,
                       EOFException
Specified by:
readLine in interface DataInput

readLong

public long readLong()
              throws IOException,
                     EOFException
Specified by:
readLong in interface DataInput

readShort

public short readShort()
                throws IOException,
                       EOFException
Specified by:
readShort in interface DataInput

readUnsignedByte

public int readUnsignedByte()
                     throws IOException,
                            EOFException
Specified by:
readUnsignedByte in interface DataInput

readUnsignedShort

public int readUnsignedShort()
                      throws IOException,
                             EOFException
Specified by:
readUnsignedShort in interface DataInput

readUTF

public String readUTF()
               throws IOException,
                      EOFException
Specified by:
readUTF in interface DataInput

skipBytes

public int skipBytes(int count)
              throws IOException,
                     EOFException
Specified by:
skipBytes in interface DataInput

available

public int available()
              throws IOException,
                     EOFException

close

public void close()
           throws IOException,
                  EOFException

read

public int read()
         throws IOException,
                EOFException

read

public int read(byte[] data)
         throws IOException,
                EOFException

read

public int read(byte[] data,
                int offset,
                int length)
         throws IOException,
                EOFException

skip

public long skip(long count)
          throws IOException,
                 EOFException

mark

public void mark(int readLimit)

markSupported

public boolean markSupported()

reset

public void reset()
           throws IOException


"Copyright © 2000-2002 Apache Jakarta Project. All Rights Reserved."