|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VFSProvider
a provider for a VirtualFileSystem store.
| Method Summary | |
|---|---|
void |
createNewFile(VirtualFile file)
creates a new file in the underlying file system. |
boolean |
delete(java.net.URI uri)
deletes the file at the given URI. |
boolean |
delete(VirtualFile file)
deletes the given VirtualFile. |
boolean |
distribute(VirtualFile f)
distributes the VirtualFile. |
long |
getFileSize(VirtualFile file)
returns the size of the VirtualFile in bytes. |
java.net.URI |
getHttpBasePath()
access to the HTTP base path. |
java.lang.String |
getHttpBasePathString()
returns the HTTP base path as a string. |
java.io.InputStream |
getInputStream(VirtualFile file)
provides an InputStream to read from the given VirtualFile. |
java.io.OutputStream |
getOutputStream(VirtualFile file)
provides an OutputStream to write to the given VirtualFile. |
void |
init(org.jdom.Element conf)
initialises the provider with the configuration element. |
boolean |
mkdir(VirtualFile dir)
creates a new directory in the underlying file system. |
java.net.URI |
resolveHTTPPath(VirtualFile file)
resolves the HTTP path to the given VirtualFile. |
| Method Detail |
|---|
boolean delete(VirtualFile file)
VirtualFile.
file - the VirtualFile to be deleted
true, if successful. Otherwise false.boolean delete(java.net.URI uri)
URI. Is used during to move
process.
uri - the URI
true, if the file could be deleted on the underlying file
system or if no such file exists. Otherwise false.boolean distribute(VirtualFile f)
VirtualFile.
f - the VirtualFile to be distributed
true if the distribution has been successful; otherwise
false
java.io.OutputStream getOutputStream(VirtualFile file)
throws java.io.IOException
OutputStream to write to the given VirtualFile.
file - the VirtualFile to be written to
OutputStream to write to the given VirtualFile
java.io.IOException - on errors aquiring the OutputStream
java.io.InputStream getInputStream(VirtualFile file)
throws java.io.IOException
InputStream to read from the given VirtualFile.
file - the VirtualFile to be read
InputStream to read from the given VirtualFile
java.io.IOException - on errors aquiring the InputStreamjava.net.URI resolveHTTPPath(VirtualFile file)
VirtualFile.
file - the VirtualFile to be resolved
URI to the VirtualFile or null, if
the VirtualFile is privatejava.net.URI getHttpBasePath()
java.lang.String getHttpBasePathString()
long getFileSize(VirtualFile file)
VirtualFile in bytes.
file - the VirtualFile
VirtualFile in bytesvoid init(org.jdom.Element conf)
conf - the configuration
void createNewFile(VirtualFile file)
throws java.io.IOException
file - the file to create
java.io.IOException - on errors creating the file in the underlying file systemboolean mkdir(VirtualFile dir)
dir - the directory to be created
true, if and only if the directory has been created
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||