com.partnersoft.io
Class CachingVFSRandomAccess

java.lang.Object
  extended by com.partnersoft.io.VFSRandomAccess
      extended by com.partnersoft.io.CachingVFSRandomAccess

public class CachingVFSRandomAccess
extends VFSRandomAccess

A caching wrapper for any VFSRandomAccess object.

Author:
Paul Reavis Copyright 2004 Partner Software, Inc.

Constructor Summary
CachingVFSRandomAccess(VFSRandomAccess source)
           
 
Method Summary
 void close()
           
 int getLength()
           
 int getPosition()
           
 int read()
           
 int read(byte[] array, int start, int length)
           
 void setPosition(int newPosition)
           
 
Methods inherited from class com.partnersoft.io.VFSRandomAccess
readByte, readDouble, readFloat, readFully, readFully, readInt, readLong, readShort, readUnsignedByte, readUnsignedShort, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingVFSRandomAccess

public CachingVFSRandomAccess(VFSRandomAccess source)
Method Detail

setPosition

public void setPosition(int newPosition)
                 throws java.io.IOException
Specified by:
setPosition in class VFSRandomAccess
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Specified by:
read in class VFSRandomAccess
Throws:
java.io.IOException

read

public int read(byte[] array,
                int start,
                int length)
         throws java.io.IOException
Specified by:
read in class VFSRandomAccess
Throws:
java.io.IOException

getLength

public int getLength()
              throws java.io.IOException
Specified by:
getLength in class VFSRandomAccess
Throws:
java.io.IOException

getPosition

public int getPosition()
                throws java.io.IOException
Specified by:
getPosition in class VFSRandomAccess
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in class VFSRandomAccess
Throws:
java.io.IOException