com.caucho.vfs.remote
Class RemoteFilesystem

java.lang.Object
  extended by com.caucho.vfs.remote.RemoteFilesystem

public class RemoteFilesystem
extends java.lang.Object

Remote filesystem with included cache.


Constructor Summary
RemoteFilesystem(java.lang.String url, Path dbDirectory, java.lang.String tableName)
           
 
Method Summary
 void close()
           
protected  com.caucho.vfs.remote.RemoteFilesystem.RemoteConnection getRemoteConnection()
           
 Stat getRemoteStat(java.lang.String file, Stat stat)
          Returns the file's stats
 Stat getStat(java.lang.String file)
          Returns the file's stats
 java.lang.String[] list(java.lang.String file)
          Returns the directory list
 java.io.InputStream read(java.lang.String file)
          Reads a file
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteFilesystem

public RemoteFilesystem(java.lang.String url,
                        Path dbDirectory,
                        java.lang.String tableName)
                 throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getStat

public Stat getStat(java.lang.String file)
             throws java.io.IOException
Returns the file's stats

Throws:
java.io.IOException

list

public java.lang.String[] list(java.lang.String file)
                        throws java.io.IOException
Returns the directory list

Throws:
java.io.IOException

read

public java.io.InputStream read(java.lang.String file)
                         throws java.io.IOException
Reads a file

Throws:
java.io.IOException

getRemoteStat

public Stat getRemoteStat(java.lang.String file,
                          Stat stat)
                   throws java.io.IOException
Returns the file's stats

Throws:
java.io.IOException

getRemoteConnection

protected com.caucho.vfs.remote.RemoteFilesystem.RemoteConnection getRemoteConnection()
                                                                               throws java.io.IOException
Throws:
java.io.IOException

close

public void close()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object