|
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
public class 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()
toString in class Objectpublic void setWatchList(Collection watchList)
setWatchList in interface WatchedStreamwatchList - 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 Closeableclose in interface WatchedStreamclose in class FilterOutputStreamIOException
public void flush()
throws IOException
flush in interface Flushableflush in class FilterOutputStreamIOException
public void write(int b)
throws IOException
write in class FilterOutputStreamIOException
public void write(byte[] b)
throws IOException
write in class FilterOutputStreamIOException
public void write(byte[] b,
int off,
int len)
throws IOException
write in class FilterOutputStreamIOException
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||