|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
net.jxta.util.WatchedInputStream
@Deprecated public class WatchedInputStream
Constructor Summary | |
---|---|
WatchedInputStream(InputStream in)
Deprecated. |
|
WatchedInputStream(InputStream in,
int chunkSize)
Deprecated. |
Method Summary | |
---|---|
void |
close()
Deprecated. In case we want to close a watchStream regardless of its making progress. |
int |
read()
Deprecated. |
int |
read(byte[] b)
Deprecated. |
int |
read(byte[] b,
int off,
int len)
Deprecated. |
void |
setWatchList(Collection watchList)
Deprecated. Sets the watcher list onto which this stream must register when it is not idle (so that it can be watched). |
String |
toString()
Deprecated. Debugging toString. |
void |
watch()
Deprecated. This routine may be invoked as often as progress needs to be asserted. |
Methods inherited from class java.io.FilterInputStream |
---|
available, mark, markSupported, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WatchedInputStream(InputStream in, int chunkSize)
public WatchedInputStream(InputStream in)
Method Detail |
---|
public String toString()
toString
in class Object
public void setWatchList(Collection watchList)
setWatchList
in interface WatchedStream
watchList
- The watchList to register with. Must be a
Synchronized Collection.public void watch()
WatchedStream
watch
in interface WatchedStream
public void close() throws IOException
WatchedStream
close
in interface Closeable
close
in interface WatchedStream
close
in class FilterInputStream
IOException
- if an io error occurspublic int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b) throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |