edu.psu.geovista.db.dbase
Class GvDataInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byjava.io.DataInputStream
              extended byedu.psu.geovista.db.dbase.GvDataInputStream
All Implemented Interfaces:
java.io.DataInput

public class GvDataInputStream
extends java.io.DataInputStream

GvDataInputStream reads from a DataInputStream

Version:
$Revision: 1.1.1.1 $
Author:
Frank Hardisty (hardisty@geog.psu.edu)
See Also:
DataInputStream

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
GvDataInputStream(java.io.InputStream in)
          Construct a newly created GvDataInputStream
 
Method Summary
 char readCharLE()
           
 double readDoubleLE()
           
 float readFloatLE()
           
 int readIntLE()
           
 long readLongLE()
           
 short readShortLE()
          reads a short.
 
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GvDataInputStream

public GvDataInputStream(java.io.InputStream in)
Construct a newly created GvDataInputStream

Parameters:
in - An InputStream.
Method Detail

readShortLE

public final short readShortLE()
                        throws java.io.IOException
reads a short. Little Endian version. it uses "readFully" meathod instead of reading each byte.
 readFully(c, 0, 2) is probably faster and use less memory than
 int ch1 = read();
 int ch2 = read();
 return (short)((ch2 << 8) + (ch1 << 0));
 

Throws:
java.io.IOException

readCharLE

public final char readCharLE()
                      throws java.io.IOException
Throws:
java.io.IOException

readIntLE

public int readIntLE()
              throws java.io.IOException
Throws:
java.io.IOException

readLongLE

public long readLongLE()
                throws java.io.IOException
Throws:
java.io.IOException

readFloatLE

public float readFloatLE()
                  throws java.io.IOException
Throws:
java.io.IOException

readDoubleLE

public double readDoubleLE()
                    throws java.io.IOException
Throws:
java.io.IOException


Copyright © 1996-2003 GeoVista Center. All Rights Reserved.