org.das2.util.filesystem.VFSFileObject

This class is part of a wrapper for the Apache Commons VFS. NOTE: At the moment, many situations where the Commons VFS throws a FileSystemException will result in a RuntimeException from this code. A better way of handling these exceptions should probably be found.


canWrite

canWrite( ) → boolean

Returns:

boolean

search for examples view on GitHub view source


createFile

createFile( ) → void

Create the file named by this VFSFileObject. Also creates any necessary ancestor folders. Does nothing if file already exists and is a file (not a folder).

Returns:

void (returns nothing)

search for examples view on GitHub view source


createFolder

createFolder( ) → void

Create a folder named by this VFSFileObject. This method will also create any necessary ancestor folders. Does nothing if the folder already exists.

Returns:

void (returns nothing)

search for examples view on GitHub view source


delete

delete( ) → void

Deletes the file. Does nothing if the file doesn't exist or is a non-empty folder.

Returns:

void (returns nothing)

search for examples view on GitHub view source


getOutputStream

getOutputStream( boolean append ) → OutputStream

Returns:

java.io.OutputStream

search for examples view on GitHub view source