org.das2.util.DasProgressMonitorInputStream
Creates a new instance of DasProgressMonitorInputStream
addPropertyChangeListener
addPropertyChangeListener( java.beans.PropertyChangeListener l ) → void
Adds a PropertyChangeListener to the listener list.
Parameters
l - The listener to add.
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
addRunWhenClosedRunnable
addRunWhenClosedRunnable( java.lang.Runnable run ) → void
should an action be needed when the transaction is complete, for example
closing a network connection, this can be used.
Parameters
run - a Runnable
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
close
close( ) → void
close resources needed and set the monitor finished flag. If
and runWhenClosedRunnables have been added, call them.
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getStreamLength
getStreamLength( ) → long
the length of the stream in bytes. Note often the length is not known,
and it is by default 1000000.
Returns:
length of the stream in bytes, or 10000000.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
read
read( ) → int
Returns:
int
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
read( byte[] b ) → int
read( byte[] b, int off, int len ) → int
removePropertyChangeListener
removePropertyChangeListener( java.beans.PropertyChangeListener l ) → void
Removes a PropertyChangeListener from the listener list.
Parameters
l - The listener to remove.
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setEnableProgressPosition
setEnableProgressPosition( boolean value ) → void
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.
Parameters
value - a boolean
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setStreamLength
setStreamLength( long streamLength ) → void
set the length of the stream in bytes.
Parameters
streamLength - the length of the stream in bytes.
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]