|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SuspendableWriterI
A character output stream that can be suspended and resumed.
This interface is used to implement any kind of character output stream that
is capable of writing output (e.g., Writer
). It also
provides the capability of suspending all output written to the stream, so
that subsequent write requests perform no output. It also provides the
capability of resuming all output written to the stream.
Implementations of this interface are encouraged to provide at least one
constructor that takes an output stream argument (such as a
Writer
or OutputStream
) specifying the
underlying character output stream.
For example:
class MySuspendableOutput extends tribble.io.SuspendableWriterI { /** Constructor. */ public MySuspendableOutput(java.io.Writer out) { ... } ... }
SuspendableWriter
,
SuspendablePrintWriter
,
DebugWriterI
Field Summary | |
---|---|
static java.lang.String |
REV
Revision information. |
Method Summary | |
---|---|
void |
close()
Close this output stream. |
boolean |
isSuspended()
Determine if this output stream is suspended or not. |
void |
resume()
Resume subsequent output written to this output stream. |
void |
suspend()
Suspend subsequent output written to this output stream. |
Field Detail |
---|
static final java.lang.String REV
Method Detail |
---|
void suspend()
Output to this stream can be resumed by calling resume()
.
This method may be called multiple times without any intervening call to
resume()
without any ill effects.
resume()
void resume()
Output to this stream can be suspended by calling suspend()
.
This method may be called multiple times without any previous or
intervening call to suspend()
without any ill effects.
suspend()
boolean isSuspended()
suspend()
void close() throws java.io.IOException
Note that this method is required to flush and close the underlying output stream of this stream. It does this regardless of whether or not this stream is suspended.
java.io.IOException
- Thrown if an error occurs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |