Class FileUtil.Pipe
java.lang.Object
org.aspectj.util.FileUtil.Pipe
- All Implemented Interfaces:
Runnable
- Enclosing class:
FileUtil
-
Method Summary
Modifier and TypeMethodDescriptionprotected voidcompleting(long totalWritten, Throwable thrown) This is called when the pipe is completing.booleanhalt(boolean wait, boolean finishStream) Tell the pipe to halt the next time it gains control.voidrun()Run the pipe.voidsetSnoop(ByteArrayOutputStream snoop) long
-
Method Details
-
setSnoop
-
run
-
halt
public boolean halt(boolean wait, boolean finishStream) Tell the pipe to halt the next time it gains control.- Parameters:
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.- Returns:
- true if
run()will return the next time it gains control
-
totalWritten
public long totalWritten()- Returns:
- the total number of bytes written
-
getThrown
- Returns:
- any exception thrown when reading/writing
-
completing
This is called when the pipe is completing. This implementation does nothing. Subclasses implement this to get notice. Note that halt(true, true) might or might not have completed before this method is called.
-