com.caucho.vfs
Class DatastoreFile

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

@Entity
public class DatastoreFile
extends java.lang.Object


Constructor Summary
DatastoreFile(java.lang.String pathname)
           
 
Method Summary
 long getLength()
           
 DatastorePath getPath()
           
 java.lang.String getPathname()
           
 int read(int position, byte[] buffer, int off, int len)
           
 void setPath(DatastorePath path)
           
 void write(byte[] buffer, int off, int len)
           
 void write(int position, byte[] buffer, int off, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatastoreFile

public DatastoreFile(java.lang.String pathname)
Method Detail

getPathname

public java.lang.String getPathname()

getLength

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

setPath

public void setPath(DatastorePath path)

getPath

public DatastorePath getPath()

write

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

write

public void write(int position,
                  byte[] buffer,
                  int off,
                  int len)
           throws java.io.IOException
Throws:
java.io.IOException

read

public int read(int position,
                byte[] buffer,
                int off,
                int len)
         throws java.io.IOException
Throws:
java.io.IOException