<h2>org.das2.util.DasProgressMonitorInputStream</h2><p></p> <h2>DasProgressMonitorInputStream( <a href='https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html'>java.io.InputStream</a> in, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/monitor/ProgressMonitor.html'>ProgressMonitor</a> monitor )</h2> <p>Creates a new instance of DasProgressMonitorInputStream</p> <hr> <a name="addPropertyChangeListener"></a> <h2>addPropertyChangeListener</h2> addPropertyChangeListener( <a href='https://docs.oracle.com/javase/8/docs/api/java/beans/PropertyChangeListener.html'>java.beans.PropertyChangeListener</a> l ) → void <p>Adds a PropertyChangeListener to the listener list.</p> <h3>Parameters</h3> l - The listener to add. <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=addPropertyChangeListener&unscoped_q=addPropertyChangeListener">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/DasProgressMonitorInputStream.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/DasProgressMonitorInputStream.html#addPropertyChangeListener">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/DasProgressMonitorInputStream.java">[view source]</a> <br> <br> <hr> <a name="addRunWhenClosedRunnable"></a> <h2>addRunWhenClosedRunnable</h2> addRunWhenClosedRunnable( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Runnable.html'>java.lang.Runnable</a> run ) → void <p>should an action be needed when the transaction is complete, for example closing a network connection, this can be used.</p> <h3>Parameters</h3> run - a Runnable <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=addRunWhenClosedRunnable&unscoped_q=addRunWhenClosedRunnable">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/DasProgressMonitorInputStream.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/DasProgressMonitorInputStream.html#addRunWhenClosedRunnable">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/DasProgressMonitorInputStream.java">[view source]</a> <br> <br> <hr> <a name="close"></a> <h2>close</h2> close( ) → void <p>close resources needed and set the monitor finished flag. If and runWhenClosedRunnables have been added, call them.</p> <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=close&unscoped_q=close">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/DasProgressMonitorInputStream.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/DasProgressMonitorInputStream.html#close">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/DasProgressMonitorInputStream.java">[view source]</a> <br> <br> <hr> <a name="getStreamLength"></a> <h2>getStreamLength</h2> getStreamLength( ) → long <p>the length of the stream in bytes. Note often the length is not known, and it is by default 1000000.</p> <h3>Returns:</h3> length of the stream in bytes, or 10000000. <br><br> <a href="https://github.com/autoplot/dev/search?q=getStreamLength&unscoped_q=getStreamLength">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/DasProgressMonitorInputStream.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/DasProgressMonitorInputStream.html#getStreamLength">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/DasProgressMonitorInputStream.java">[view source]</a> <br> <br> <hr> <a name="read"></a> <h2>read</h2> read( ) → int <p></p> <h3>Returns:</h3> int <br><br> <a href="https://github.com/autoplot/dev/search?q=read&unscoped_q=read">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/DasProgressMonitorInputStream.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/DasProgressMonitorInputStream.html#read">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/DasProgressMonitorInputStream.java">[view source]</a> <br> <br> read( byte[] b ) → int<br> read( byte[] b, int off, int len ) → int<br> <hr> <a name="removePropertyChangeListener"></a> <h2>removePropertyChangeListener</h2> removePropertyChangeListener( <a href='https://docs.oracle.com/javase/8/docs/api/java/beans/PropertyChangeListener.html'>java.beans.PropertyChangeListener</a> l ) → void <p>Removes a PropertyChangeListener from the listener list.</p> <h3>Parameters</h3> l - The listener to remove. <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=removePropertyChangeListener&unscoped_q=removePropertyChangeListener">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/DasProgressMonitorInputStream.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/DasProgressMonitorInputStream.html#removePropertyChangeListener">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/DasProgressMonitorInputStream.java">[view source]</a> <br> <br> <hr> <a name="setEnableProgressPosition"></a> <h2>setEnableProgressPosition</h2> setEnableProgressPosition( boolean value ) → void <p>disable/enable setting of progress position, true by default. Transfer rate will still be reported. This is introduced in case another agent (the das2Stream reader, in particular) can set the progress position more accurately.</p> <h3>Parameters</h3> value - a boolean <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setEnableProgressPosition&unscoped_q=setEnableProgressPosition">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/DasProgressMonitorInputStream.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/DasProgressMonitorInputStream.html#setEnableProgressPosition">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/DasProgressMonitorInputStream.java">[view source]</a> <br> <br> <hr> <a name="setStreamLength"></a> <h2>setStreamLength</h2> setStreamLength( long streamLength ) → void <p>set the length of the stream in bytes.</p> <h3>Parameters</h3> streamLength - the length of the stream in bytes. <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setStreamLength&unscoped_q=setStreamLength">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/DasProgressMonitorInputStream.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/DasProgressMonitorInputStream.html#setStreamLength">[view on old javadoc]</a> <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/DasProgressMonitorInputStream.java">[view source]</a> <br> <br>