com.partnersoft.io.formats.packrat
Class PackratRandomAccessReader

java.lang.Object
  extended by com.partnersoft.io.formats.packrat.PackratRandomAccessReader

public class PackratRandomAccessReader
extends java.lang.Object

A tool for random-access reading of a Packrat file.

Author:
Paul Reavis Copyright 2003 Partner Software, Inc.

Field Summary
 int end
           
 VFSRandomAccess randy
           
 int start
           
 
Constructor Summary
PackratRandomAccessReader(VFSRandomAccess randy)
           
PackratRandomAccessReader(VFSRandomAccess randy, int start, int end)
           
 
Method Summary
 void readBytes(ByteBuffer buffy, int whereAt, int howMuch)
           
 double readDouble(int whereAt)
           
 float readFloat(int whereAt)
           
 short readInt16(int whereAt)
           
 int readInt32(int whereAt)
           
 long readInt64(int whereAt)
           
 byte readInt8(int whereAt)
           
 long readSize(int sizeParam, int whereAt)
           
 int readUInt16(int whereAt)
           
 long readUInt32(int whereAt)
           
 short readUInt8(int whereAt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

randy

public VFSRandomAccess randy

start

public int start

end

public int end
Constructor Detail

PackratRandomAccessReader

public PackratRandomAccessReader(VFSRandomAccess randy,
                                 int start,
                                 int end)

PackratRandomAccessReader

public PackratRandomAccessReader(VFSRandomAccess randy)
                          throws java.io.IOException
Throws:
java.io.IOException
Method Detail

readSize

public long readSize(int sizeParam,
                     int whereAt)
              throws java.io.IOException
Throws:
java.io.IOException

readBytes

public void readBytes(ByteBuffer buffy,
                      int whereAt,
                      int howMuch)
               throws java.io.IOException
Throws:
java.io.IOException

readInt8

public final byte readInt8(int whereAt)
                    throws java.io.IOException
Throws:
java.io.IOException

readUInt8

public final short readUInt8(int whereAt)
                      throws java.io.IOException
Throws:
java.io.IOException

readInt16

public final short readInt16(int whereAt)
                      throws java.io.IOException
Throws:
java.io.IOException

readUInt16

public final int readUInt16(int whereAt)
                     throws java.io.IOException
Throws:
java.io.IOException

readInt32

public final int readInt32(int whereAt)
                    throws java.io.IOException
Throws:
java.io.IOException

readUInt32

public final long readUInt32(int whereAt)
                      throws java.io.IOException
Throws:
java.io.IOException

readInt64

public final long readInt64(int whereAt)
                     throws java.io.IOException
Throws:
java.io.IOException

readFloat

public final float readFloat(int whereAt)
                      throws java.io.IOException
Throws:
java.io.IOException

readDouble

public final double readDouble(int whereAt)
                        throws java.io.IOException
Throws:
java.io.IOException