<h2>org.das2.util.OsUtil</h2><p>Utility methods for operating system functions.</p>
<h2>OsUtil( )</h2>
<p></p>

<hr>
<a name="closeQuietly"></a>
<h2>closeQuietly</h2>
closeQuietly( <a href='https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html'>java.io.InputStream</a> input ) &rarr; void

<p>Unconditionally close an <code>Reader</code>.
 <p>
 Equivalent to {@link Reader#close()}, except any exceptions will be ignored.
 This is typically used in finally blocks.
 
 From apache commons. http://grepcode.com/file_/repo1.maven.org/maven2/commons-io/commons-io/1.2/org/apache/commons/io/IOUtils.java/?v=source</p>

<h3>Parameters</h3>
input - the Reader to close, may be null or already closed

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=closeQuietly&unscoped_q=closeQuietly">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/OsUtil.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/OsUtil.html#closeQuietly">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/OsUtil.java">[view source]</a>
<br>
<br>
<hr>
<a name="contentEquals"></a>
<h2>contentEquals</h2>
contentEquals( <a href='https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html'>java.io.InputStream</a> input1, <a href='https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html'>java.io.InputStream</a> input2 ) &rarr; boolean

<p>Compare the contents of two Streams to determine if they are equal or
 not.
 <p>
 This method buffers the input internally using
 <code>BufferedInputStream</code> if they are not already buffered.</p>

<h3>Parameters</h3>
input1 - the first stream
<br>
input2 - the second stream

<h3>Returns:</h3>
true if the content of the streams are equal or they both don't
 exist, false otherwise
<br><br>
<a href="https://github.com/autoplot/dev/search?q=contentEquals&unscoped_q=contentEquals">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/OsUtil.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/OsUtil.html#contentEquals">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/OsUtil.java">[view source]</a>
<br>
<br>
contentEquals( <a href='https://docs.oracle.com/javase/8/docs/api/java/io/File.html'>java.io.File</a> file1, <a href='https://docs.oracle.com/javase/8/docs/api/java/io/File.html'>java.io.File</a> file2 ) &rarr; boolean<br>
<hr>
<a name="getProcessId"></a>
<h2>getProcessId</h2>
getProcessId( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> fallback ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a>

<p>return the processID (pid), or the fallback if the pid cannot be found.</p>

<h3>Parameters</h3>
fallback - the string (null is okay) to return when the pid cannot be found.

<h3>Returns:</h3>
the process id or the fallback provided by the caller.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=getProcessId&unscoped_q=getProcessId">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/OsUtil.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/OsUtil.html#getProcessId">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/OsUtil.java">[view source]</a>
<br>
<br>