|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.aspectj.util.FileUtil.Pipe
public static class FileUtil.Pipe
A pipe when run reads from an input stream to an output stream, optionally sleeping between reads.
FileUtil.copyStream(InputStream, OutputStream)
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |