|
Project JXTA | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
net.jxta.util.WatchedOutputStream
Constructor Summary | |
WatchedOutputStream(OutputStream out)
|
|
WatchedOutputStream(OutputStream out,
int chunkSize)
|
Method Summary | |
void |
close()
In case we want to close a watchStream regardless of its making progress. |
void |
flush()
|
void |
setWatchList(Collection watchList)
Sets the watcher list onto which this stream must register when it is not idle (so that it can be watched). |
String |
toString()
Debugging toString. |
void |
watch()
This routine may be invoked as often as progress needs to be asserted. |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public WatchedOutputStream(OutputStream out, int chunkSize)
public WatchedOutputStream(OutputStream out)
Method Detail |
public String toString()
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 WatchedStream
IOException
public void flush() throws IOException
IOException
public void write(int b) throws IOException
IOException
public void write(byte[] b) throws IOException
IOException
public void write(byte[] b, int off, int len) throws IOException
IOException
|
JXTA J2SE | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |