org.das2.util.DasProgressMonitorInputStream


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 -

Returns:

void (returns nothing)

search for examples view on GitHub 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 source


read

read( ) → int

Returns:

int

search for examples view on GitHub 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 -

Returns:

void (returns nothing)

search for examples view on GitHub 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 source