org.apache.avalon.excalibur.io
Class SwappedDataInputStream

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

public class SwappedDataInputStream
extends java.lang.Object
implements java.io.DataInput

DataInput for systems relying on little endian data formats.

Since:
4.0
Version:
CVS $Revision: 1.4 $ $Date: 2001/12/11 09:53:29 $
Author:
Peter Donald

Constructor Summary
SwappedDataInputStream(java.io.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()
           
 java.lang.String readLine()
           
 long readLong()
           
 short readShort()
           
 int readUnsignedByte()
           
 int readUnsignedShort()
           
 java.lang.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(java.io.InputStream input)
Method Detail

readBoolean

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

readByte

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

readChar

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

readDouble

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

readFloat

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

readFully

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

readFully

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

readInt

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

readLine

public java.lang.String readLine()
                          throws java.io.IOException,
                                 java.io.EOFException
Specified by:
readLine in interface java.io.DataInput

readLong

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

readShort

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

readUnsignedByte

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

readUnsignedShort

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

readUTF

public java.lang.String readUTF()
                         throws java.io.IOException,
                                java.io.EOFException
Specified by:
readUTF in interface java.io.DataInput

skipBytes

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

available

public int available()
              throws java.io.IOException,
                     java.io.EOFException

close

public void close()
           throws java.io.IOException,
                  java.io.EOFException

read

public int read()
         throws java.io.IOException,
                java.io.EOFException

read

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

read

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

skip

public long skip(long count)
          throws java.io.IOException,
                 java.io.EOFException

mark

public void mark(int readLimit)

markSupported

public boolean markSupported()

reset

public void reset()
           throws java.io.IOException


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.