|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.vfs.providers.SingleFileSystemProvider
public final class SingleFileSystemProvider
a VFSProvider working directly on a single file system.
| Constructor Summary | |
|---|---|
SingleFileSystemProvider()
Constructs a new SingleFileSystemProvider. |
|
| Method Summary | |
|---|---|
void |
createNewFile(VirtualFile file)
creates a new file in the file system. |
boolean |
delete(java.net.URI f)
deletes the file at the given URI. |
boolean |
delete(VirtualFile f)
deletes the given VirtualFile. |
boolean |
distribute(VirtualFile f)
distributes the VirtualFile. |
long |
getFileSize(VirtualFile file)
returns the size of the file. |
java.net.URI |
getHttpBasePath()
access to the HTTP base path. |
java.lang.String |
getHttpBasePathString()
returns the HTTP base path as an ASCII string. |
java.io.InputStream |
getInputStream(VirtualFile f)
provides an InputStream to read from the given VirtualFile. |
java.io.OutputStream |
getOutputStream(VirtualFile f)
provides an OutputStream to write to the given VirtualFile. |
void |
init(org.jdom.Element conf)
initialises the provider. |
boolean |
mkdir(VirtualFile dir)
creates a new directory in the underlying file system. |
java.net.URI |
resolveHTTPPath(VirtualFile f)
resolves the HTTP path to the given VirtualFile. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingleFileSystemProvider()
SingleFileSystemProvider.
Note: The provider has still to be initialised properly by
calling init(Element).
| Method Detail |
|---|
public java.net.URI resolveHTTPPath(VirtualFile f)
VirtualFile.
resolveHTTPPath in interface VFSProviderf - the VirtualFile to be resolved
URI to the VirtualFile or null, if
the VirtualFile is privatepublic java.net.URI getHttpBasePath()
getHttpBasePath in interface VFSProviderpublic java.lang.String getHttpBasePathString()
getHttpBasePathString in interface VFSProviderpublic boolean delete(VirtualFile f)
VFSProviderVirtualFile.
delete in interface VFSProviderf - the VirtualFile to delete
true, if the VirtualFile has been deleted;
otherwise falseVFSProvider.delete(org.torweg.pulse.vfs.VirtualFile)public boolean delete(java.net.URI f)
URI. Is used during to move
process.
delete in interface VFSProviderf - the URI
true, if the file could be deleted on the underlying file
system or if no such file exists. Otherwise false.
public void createNewFile(VirtualFile file)
throws java.io.IOException
createNewFile in interface VFSProviderfile - the file to create
java.io.IOException - on errors creating the fileVFSProvider.createNewFile(org.torweg.pulse.vfs.VirtualFile)public boolean mkdir(VirtualFile dir)
mkdir in interface VFSProviderdir - the directory to be created
true, if and only if the directory has been created.
Otherwise false.VFSProvider.mkdir(org.torweg.pulse.vfs.VirtualFile)public boolean distribute(VirtualFile f)
VFSProviderVirtualFile.
distribute in interface VFSProviderf - the VirtualFile to be distributed
true, if the VirtualFile has been distributed;
otherwise falseVFSProvider.distribute(org.torweg.pulse.vfs.VirtualFile)
public java.io.InputStream getInputStream(VirtualFile f)
throws java.io.IOException
VFSProviderInputStream to read from the given VirtualFile.
getInputStream in interface VFSProviderf - the VirtualFile to be read from
InputStream to read from the given VirtualFile
java.io.IOException - on errors aquiring the InputStreamVFSProvider.getInputStream(org.torweg.pulse.vfs.VirtualFile)
public java.io.OutputStream getOutputStream(VirtualFile f)
throws java.io.IOException
VFSProviderOutputStream to write to the given VirtualFile.
getOutputStream in interface VFSProviderf - the VirtualFile to be read from
OutputStream to read from the given
VirtualFile
java.io.IOException - on errors aquiring the OutputStreamVFSProvider.getOutputStream(org.torweg.pulse.vfs.VirtualFile)public long getFileSize(VirtualFile file)
getFileSize in interface VFSProviderfile - the VirtualFile
public void init(org.jdom.Element conf)
init in interface VFSProviderconf - the configuration element for the provider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||