public class DasProgressMonitorReadableByteChannel
extends java.lang.Object
implements java.nio.channels.ReadableByteChannel
| Constructor and Description |
|---|
DasProgressMonitorReadableByteChannel(java.nio.channels.ReadableByteChannel in,
ProgressMonitor monitor)
Creates a new instance of DasProgressMonitorInputStream
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a PropertyChangeListener to the listener list.
|
void |
close() |
long |
getStreamLength()
Getter for property taskSize.
|
boolean |
isOpen() |
int |
read(java.nio.ByteBuffer dst) |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener from the listener list.
|
void |
setEnableProgressPosition(boolean value)
disable/enable setting of progress position, true by default.
|
void |
setStreamLength(long taskSize)
Setter for property taskSize.
|
public DasProgressMonitorReadableByteChannel(java.nio.channels.ReadableByteChannel in,
ProgressMonitor monitor)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface java.nio.channels.Channeljava.io.IOExceptionpublic void setEnableProgressPosition(boolean value)
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l - The listener to add.public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l - The listener to remove.public long getStreamLength()
public void setStreamLength(long taskSize)
taskSize - New value of property taskSize.public int read(java.nio.ByteBuffer dst)
throws java.io.IOException
read in interface java.nio.channels.ReadableByteChanneljava.io.IOExceptionpublic boolean isOpen()
isOpen in interface java.nio.channels.Channel