<h2>org.autoplot.Util</h2><p></p>
<h2>Util( )</h2>
<p></p>

<hr>
<a name="logger"></a>
<h2>logger</h2>
<p></p>

<hr>
<a name="addFonts"></a>
<h2>addFonts</h2>
addFonts(  ) &rarr; void

<p>this will add the Scheme and other named fonts found in the /resources/ folder.</p>

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

<br><br>
<a href="https://github.com/autoplot/dev/search?q=addFonts&unscoped_q=addFonts">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/Util.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/Util.html#addFonts">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/Util.java#l365">[view source]</a>
<br>
<br>
<hr>
<a name="copyFile"></a>
<h2>copyFile</h2>
copyFile( <a href='https://docs.oracle.com/javase/8/docs/api/java/io/File.html'>java.io.File</a> srcf, <a href='https://docs.oracle.com/javase/8/docs/api/java/io/File.html'>java.io.File</a> dstf ) &rarr; boolean

<p>copy a file.  This will probably always returns true or an exception, but check the status to be sure.</p>

<h3>Parameters</h3>
srcf - the source file
<br>
dstf - the destination file

<h3>Returns:</h3>
true if successful.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=copyFile&unscoped_q=copyFile">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/Util.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/Util.html#copyFile">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/Util.java#l205">[view source]</a>
<br>
<br>
<hr>
<a name="copyFileTree"></a>
<h2>copyFileTree</h2>
copyFileTree( <a href='https://docs.oracle.com/javase/8/docs/api/java/io/File.html'>java.io.File</a> root, <a href='https://docs.oracle.com/javase/8/docs/api/java/io/File.html'>java.io.File</a> dst ) &rarr; boolean

<p>copy a branch of files and folders.</p>

<h3>Parameters</h3>
root - root folder.
<br>
dst - destination folder.

<h3>Returns:</h3>
true if successful.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=copyFileTree&unscoped_q=copyFileTree">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/Util.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/Util.html#copyFileTree">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/Util.java#l218">[view source]</a>
<br>
<br>
copyFileTree( <a href='https://docs.oracle.com/javase/8/docs/api/java/io/File.html'>java.io.File</a> root, <a href='https://docs.oracle.com/javase/8/docs/api/java/io/File.html'>java.io.File</a> dst, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/monitor/ProgressMonitor.html'>ProgressMonitor</a> mon ) &rarr; boolean<br>
copyFileTree( <a href='https://docs.oracle.com/javase/8/docs/api/java/io/File.html'>java.io.File</a> root, <a href='https://docs.oracle.com/javase/8/docs/api/java/io/File.html'>java.io.File</a> dst, int depth, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/monitor/ProgressMonitor.html'>ProgressMonitor</a> mon ) &rarr; boolean<br>
<hr>
<a name="deleteFileTree"></a>
<h2>deleteFileTree</h2>
deleteFileTree( <a href='https://docs.oracle.com/javase/8/docs/api/java/io/File.html'>java.io.File</a> root ) &rarr; boolean

<p>deletes all files and folders below root, and root, just as "rm -r" would.
 TODO: check links</p>

<h3>Parameters</h3>
root - the root of the tree.

<h3>Returns:</h3>
true if the operation was successful.
<h3>See Also:</h3>
<a href='null'>pruneFileTree(java.io.File, java.util.List)</a> which probably does the same thing.<br>
<br><br>
<a href="https://github.com/autoplot/dev/search?q=deleteFileTree&unscoped_q=deleteFileTree">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/Util.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/Util.html#deleteFileTree">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/Util.java#l172">[view source]</a>
<br>
<br>
<hr>
<a name="getBuildInfos"></a>
<h2>getBuildInfos</h2>
getBuildInfos(  ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/util/List.html'>java.util.List</a>

<p>searches class path for META-INF/version.txt, returns nice strings</p>

<h3>Returns:</h3>
one line per jar
<br><br>
<a href="https://github.com/autoplot/dev/search?q=getBuildInfos&unscoped_q=getBuildInfos">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/Util.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/Util.html#getBuildInfos">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/Util.java#l115">[view source]</a>
<br>
<br>
<hr>
<a name="getBuildTime"></a>
<h2>getBuildTime</h2>
getBuildTime(  ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a>

<p>return the build time an an ISO8601 time, or "????" if it is unknown.
 Note question marks are used intentionally so sloppy codes can assume
 that ???? means the current version of the code built in a debugger.</p>

<h3>Returns:</h3>
ISO8601 time or "????"
<br><br>
<a href="https://github.com/autoplot/dev/search?q=getBuildTime&unscoped_q=getBuildTime">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/Util.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/Util.html#getBuildTime">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/Util.java#l97">[view source]</a>
<br>
<br>
<hr>
<a name="pruneFileTree"></a>
<h2>pruneFileTree</h2>
pruneFileTree( <a href='https://docs.oracle.com/javase/8/docs/api/java/io/File.html'>java.io.File</a> root, <a href='https://docs.oracle.com/javase/8/docs/api/java/util/List.html'>java.util.List</a> problems ) &rarr; boolean

<p>remove empty branches from file tree.  This is like "rm -r $root"</p>

<h3>Parameters</h3>
root - the root directory from which to start a search.
<br>
problems - any files which could not be deleted are listed here.

<h3>Returns:</h3>
true if successful.
<h3>See Also:</h3>
<a href='null'>deleteFileTree(java.io.File)</a> which probably does the same thing.<br>
<br><br>
<a href="https://github.com/autoplot/dev/search?q=pruneFileTree&unscoped_q=pruneFileTree">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/Util.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/Util.html#pruneFileTree">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/Util.java#l309">[view source]</a>
<br>
<br>
<hr>
<a name="strjoin"></a>
<h2>strjoin</h2>
strjoin( <a href='https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html'>java.util.Collection</a> c, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> delim ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a>

<p>this will be replaced in Java 8.</p>

<h3>Parameters</h3>
c - a java.util.Collection
<br>
delim - a String

<h3>Returns:</h3>
a String

<br><br>
<a href="https://github.com/autoplot/dev/search?q=strjoin&unscoped_q=strjoin">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/Util.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/Util.html#strjoin">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/Util.java#l346">[view source]</a>
<br>
<br>