com.partnersoft.io
Class CachingVFSRandomAccess
java.lang.Object
com.partnersoft.io.VFSRandomAccess
com.partnersoft.io.CachingVFSRandomAccess
public class CachingVFSRandomAccess
- extends VFSRandomAccess
A caching wrapper for any VFSRandomAccess object.
- Author:
- Paul Reavis
Copyright 2004 Partner Software, Inc.
| 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 |
CachingVFSRandomAccess
public CachingVFSRandomAccess(VFSRandomAccess source)
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