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.


canRead

canRead( ) → boolean

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


canWrite

canWrite( ) → boolean

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


close

close( ) → void

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [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 on old javadoc] [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 on old javadoc] [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 on old javadoc] [view source]


exists

exists( ) → boolean

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getChannel

getChannel( ProgressMonitor monitor ) → ReadableByteChannel

Parameters

monitor - a ProgressMonitor

Returns:

java.nio.channels.ReadableByteChannel

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getChildren

getChildren( ) → FileObject

Returns:

org.das2.util.filesystem.FileObject[]

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getFile

getFile( ProgressMonitor monitor ) → File

Parameters

monitor - a ProgressMonitor

Returns:

java.io.File

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getInputStream

getInputStream( ProgressMonitor monitor ) → InputStream

Parameters

monitor - a ProgressMonitor

Returns:

java.io.InputStream

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getNameExt

getNameExt( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getOutputStream

getOutputStream( boolean append ) → OutputStream

Parameters

append - a boolean

Returns:

java.io.OutputStream

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getParent

getParent( ) → FileObject

Returns:

org.das2.util.filesystem.FileObject

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getSize

getSize( ) → long

Returns:

long

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isData

isData( ) → boolean

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isFolder

isFolder( ) → boolean

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isLocal

isLocal( ) → boolean

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isReadOnly

isReadOnly( ) → boolean

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isRoot

isRoot( ) → boolean

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


lastModified

lastModified( ) → Date

Returns:

java.util.Date

[search for examples] [view on GitHub] [view on old javadoc] [view source]