public static class FileUtil.Pipe
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Method and Description |
---|---|
protected void |
completing(long totalWritten,
java.lang.Throwable thrown)
This is called when the pipe is completing.
|
java.lang.Throwable |
getThrown() |
boolean |
halt(boolean wait,
boolean finishStream)
Tell the pipe to halt the next time it gains control.
|
void |
run()
Run the pipe.
|
void |
setSnoop(java.io.ByteArrayOutputStream snoop) |
long |
totalWritten() |
public void setSnoop(java.io.ByteArrayOutputStream snoop)
public void run()
run
in interface java.lang.Runnable
public boolean halt(boolean wait, boolean finishStream)
wait
- if true, this waits synchronously until pipe is donefinishStream
- if true, then continue until a read from the input stream returns no bytes, then halt.run()
will return the next time it gains controlpublic long totalWritten()
public java.lang.Throwable getThrown()
protected void completing(long totalWritten, java.lang.Throwable thrown)