## org.das2.util.DasProgressMonitorReadableByteChannel

## DasProgressMonitorReadableByteChannel( java.nio.channels.ReadableByteChannel in, ProgressMonitor monitor )

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]

## close

close( ) → void

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getStreamLength

getStreamLength( ) → long

Getter for property taskSize.

### Returns:

Value of property taskSize.
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## isOpen

isOpen( ) → boolean

### Returns:

boolean
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## read

read( java.nio.ByteBuffer dst ) → int

### Parameters

dst - a ByteBuffer

### Returns:

int
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## 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 taskSize ) → void

Setter for property taskSize.

### Parameters

taskSize - New value of property taskSize.

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]