com.mindprod.ledatastream
Class LEDataInputStream

java.lang.Object
  |
  +--com.mindprod.ledatastream.LEDataInputStream
All Implemented Interfaces:
java.io.DataInput

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


Field Summary
protected  java.io.DataInputStream d
           
private static java.lang.String EmbeddedCopyright
           
protected  java.io.InputStream in
           
(package private)  byte[] w
           
 
Constructor Summary
LEDataInputStream(java.io.InputStream in)
          constructor
 
Method Summary
 void close()
           
 int read(byte[] b, int off, int len)
           
 boolean readBoolean()
           
 byte readByte()
           
 char readChar()
          like DataInputStream.readChar except little endian.
 double readDouble()
          like DataInputStream.readDouble except little endian.
 float readFloat()
          like DataInputStream.readFloat except little endian.
 void readFully(byte[] b)
           
 void readFully(byte[] b, int off, int len)
           
 int readInt()
          like DataInputStream.readInt except little endian.
 java.lang.String readLine()
          Deprecated.  
 long readLong()
          like DataInputStream.readLong except little endian.
 short readShort()
          like DataInputStream.readShort except little endian.
 int readUnsignedByte()
           
 int readUnsignedShort()
          like DataInputStream.readUnsignedShort except little endian.
 java.lang.String readUTF()
           
static java.lang.String readUTF(java.io.DataInput in)
           
 void reset()
           
 int skipBytes(int n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EmbeddedCopyright

private static final java.lang.String EmbeddedCopyright
See Also:
Constant Field Values

d

protected java.io.DataInputStream d

in

protected java.io.InputStream in

w

byte[] w
Constructor Detail

LEDataInputStream

public LEDataInputStream(java.io.InputStream in)
constructor

Method Detail

readShort

public final short readShort()
                      throws java.io.IOException
like DataInputStream.readShort except little endian.

Specified by:
readShort in interface java.io.DataInput
java.io.IOException

readUnsignedShort

public final int readUnsignedShort()
                            throws java.io.IOException
like DataInputStream.readUnsignedShort except little endian. Note, returns int even though it reads a short.

Specified by:
readUnsignedShort in interface java.io.DataInput
java.io.IOException

readChar

public final char readChar()
                    throws java.io.IOException
like DataInputStream.readChar except little endian.

Specified by:
readChar in interface java.io.DataInput
java.io.IOException

readInt

public final int readInt()
                  throws java.io.IOException
like DataInputStream.readInt except little endian.

Specified by:
readInt in interface java.io.DataInput
java.io.IOException

readLong

public final long readLong()
                    throws java.io.IOException
like DataInputStream.readLong except little endian.

Specified by:
readLong in interface java.io.DataInput
java.io.IOException

readFloat

public final float readFloat()
                      throws java.io.IOException
like DataInputStream.readFloat except little endian.

Specified by:
readFloat in interface java.io.DataInput
java.io.IOException

readDouble

public final double readDouble()
                        throws java.io.IOException
like DataInputStream.readDouble except little endian.

Specified by:
readDouble in interface java.io.DataInput
java.io.IOException

read

public final int read(byte[] b,
                      int off,
                      int len)
               throws java.io.IOException
java.io.IOException

readFully

public final void readFully(byte[] b)
                     throws java.io.IOException
Specified by:
readFully in interface java.io.DataInput
java.io.IOException

readFully

public final void readFully(byte[] b,
                            int off,
                            int len)
                     throws java.io.IOException
Specified by:
readFully in interface java.io.DataInput
java.io.IOException

skipBytes

public final int skipBytes(int n)
                    throws java.io.IOException
Specified by:
skipBytes in interface java.io.DataInput
java.io.IOException

readBoolean

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

readByte

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

readUnsignedByte

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

readLine

public final java.lang.String readLine()
                                throws java.io.IOException
Deprecated.  

Specified by:
readLine in interface java.io.DataInput
java.io.IOException
See Also:
DataInput.readLine()

readUTF

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

readUTF

public static final java.lang.String readUTF(java.io.DataInput in)
                                      throws java.io.IOException
java.io.IOException

close

public final void close()
                 throws java.io.IOException
java.io.IOException

reset

public final void reset()
                 throws java.io.IOException
java.io.IOException


Copyright © 2002-2003 David Garnier. All Rights Reserved.