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.

Copyright 2003-2007 Partner Software, Inc.

Version:
$Id: PackratRandomAccessReader.java 1012 2007-11-24 18:30:02Z paul $
Author:
Paul Reavis

Field Summary
 long end
           
 VfsRandomAccess randy
           
 long start
           
 
Constructor Summary
PackratRandomAccessReader(VfsRandomAccess randy)
           
PackratRandomAccessReader(VfsRandomAccess randy, long start, long end)
           
 
Method Summary
 void readBytes(ByteBuffer buffy, long whereAt, int howMuch)
           
 double readDouble(long whereAt)
           
 float readFloat(long whereAt)
           
 short readInt16(long whereAt)
           
 int readInt32(long whereAt)
           
 long readInt64(long whereAt)
           
 byte readInt8(long whereAt)
           
 long readSize(int sizeParam, long whereAt)
           
 int readUInt16(long whereAt)
           
 long readUInt32(long whereAt)
           
 short readUInt8(long 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 long start

end

public long end
Constructor Detail

PackratRandomAccessReader

public PackratRandomAccessReader(VfsRandomAccess randy,
                                 long start,
                                 long end)

PackratRandomAccessReader

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

readSize

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

readBytes

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

readInt8

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

readUInt8

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

readInt16

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

readUInt16

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

readInt32

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

readUInt32

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

readInt64

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

readFloat

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

readDouble

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