org.das2.util.filesystem.WriteCapability

The FileObject can be written.


canWrite

canWrite( ) → boolean

Test to see if we can write to this file. This should not create a file, only getOutputStream should do this. TODO: someday we'll want a locking mechanism.

Returns:

true if the file can be created.

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


delete

delete( ) → boolean

delete the file

Returns:

true if the file was deleted.

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


getOutputStream

getOutputStream( ) → OutputStream

Get the output stream. The client who has requested the stream must close the stream.

Returns:

a java.io.OutputStream

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