|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.das2.util.DasProgressMonitorReadableByteChannel
public class DasProgressMonitorReadableByteChannel
| Constructor Summary | |
|---|---|
DasProgressMonitorReadableByteChannel(java.nio.channels.ReadableByteChannel in,
ProgressMonitor monitor)
Creates a new instance of DasProgressMonitorInputStream |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DasProgressMonitorReadableByteChannel(java.nio.channels.ReadableByteChannel in,
ProgressMonitor monitor)
| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||