<h2>org.das2.util.filesystem.WriteCapability</h2><p>The FileObject can be written.</p> <hr> <a name="canWrite"></a> <h2>canWrite</h2> canWrite( ) → boolean <p>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.</p> <h3>Returns:</h3> true if the file can be created. <br><br> <a href="https://github.com/autoplot/dev/search?q=canWrite&unscoped_q=canWrite">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/WriteCapability.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/WriteCapability.html#canWrite">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/WriteCapability.java">[view source]</a> <br> <br> <hr> <a name="commit"></a> <h2>commit</h2> commit( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> message ) → boolean <p>push the changes to the remote server. For local files, this does nothing, unless it is a local git repository.</p> <h3>Parameters</h3> message - message to document the commit. <h3>Returns:</h3> true if the commit was successful, false if not. <br><br> <a href="https://github.com/autoplot/dev/search?q=commit&unscoped_q=commit">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/WriteCapability.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/WriteCapability.html#commit">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/WriteCapability.java">[view source]</a> <br> <br> <hr> <a name="delete"></a> <h2>delete</h2> delete( ) → boolean <p>delete the file</p> <h3>Returns:</h3> true if the file was deleted. <br><br> <a href="https://github.com/autoplot/dev/search?q=delete&unscoped_q=delete">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/WriteCapability.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/WriteCapability.html#delete">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/WriteCapability.java">[view source]</a> <br> <br> <hr> <a name="getOutputStream"></a> <h2>getOutputStream</h2> getOutputStream( ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html'>java.io.OutputStream</a> <p>Get the output stream. The client who has requested the stream must close the stream.</p> <h3>Returns:</h3> a java.io.OutputStream <br><br> <a href="https://github.com/autoplot/dev/search?q=getOutputStream&unscoped_q=getOutputStream">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/filesystem/WriteCapability.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/filesystem/WriteCapability.html#getOutputStream">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/filesystem/WriteCapability.java">[view source]</a> <br> <br>