|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Writer java.io.PrintWriter com.google.gwt.codegen.server.AbortablePrintWriter
public class AbortablePrintWriter
Wrapper for a PrintWriter
that adds the ability to abort creation
and an onClose hook
Experimental API - subject to change.
Field Summary |
---|
Fields inherited from class java.io.PrintWriter |
---|
out |
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
AbortablePrintWriter(java.io.PrintWriter pw)
Wrap a PrintWriter instance. |
Method Summary | |
---|---|
void |
abort()
Abort creation of this output. |
void |
close()
|
protected void |
onClose(boolean aborted)
Called exactly once when this PrintWriter is closed or aborted. |
Methods inherited from class java.io.PrintWriter |
---|
append, append, append, checkError, clearError, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbortablePrintWriter(java.io.PrintWriter pw)
PrintWriter
instance.
pw
-
java.lang.RuntimeException
- if there are reflection errors accessing the out
field in pwMethod Detail |
---|
public void abort()
public void close()
close
in interface java.io.Closeable
close
in class java.io.PrintWriter
protected void onClose(boolean aborted)
PrintWriter
is closed or aborted.
aborted
-
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |