## 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]

## commit

commit( String message ) → boolean

push the changes to the remote server. For local files, this does nothing, unless it is a local git repository.

### Parameters

message - message to document the commit.

### Returns:

true if the commit was successful, false if not.
[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( ) → java.io.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]