com.caucho.vfs
Class DatastoreRandomAccessFile

java.lang.Object
  extended by com.caucho.vfs.DatastoreRandomAccessFile

public class DatastoreRandomAccessFile
extends java.lang.Object


Constructor Summary
DatastoreRandomAccessFile(DatastoreFile file)
           
 
Method Summary
 void close()
           
 long getFilePointer()
           
 long getLength()
           
 int read()
           
 int read(byte[] buffer, int offset, int length)
           
 boolean seek(long offset)
           
 void setPosition(long position)
           
 long skip(long offset)
           
 void write(byte[] buffer, int offset, int length)
           
 void write(int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatastoreRandomAccessFile

public DatastoreRandomAccessFile(DatastoreFile file)
Method Detail

getLength

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

getFilePointer

public long getFilePointer()

seek

public boolean seek(long offset)
             throws java.io.IOException
Throws:
java.io.IOException

skip

public long skip(long offset)
          throws java.io.IOException
Throws:
java.io.IOException

setPosition

public void setPosition(long position)
                 throws java.io.IOException
Throws:
java.io.IOException

read

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

write

public void write(int b)
           throws java.io.IOException
Throws:
java.io.IOException

read

public int read(byte[] buffer,
                int offset,
                int length)
         throws java.io.IOException
Throws:
java.io.IOException

write

public void write(byte[] buffer,
                  int offset,
                  int length)
           throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException