org.basex.io
Class NullOutput
java.lang.Object
java.io.OutputStream
org.basex.io.PrintOutput
org.basex.io.NullOutput
- All Implemented Interfaces:
- Closeable, Flushable
public final class NullOutput
- extends PrintOutput
This class swallows all data it receives.
- Author:
- Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen, Tim Petrowsky
Method Summary |
void |
close()
|
boolean |
finished()
Checks if stream can output more characters; can be overwritten to
interrupt streaming at some point. |
void |
flush()
|
void |
write(int b)
|
NullOutput
public NullOutput()
- Constructor.
NullOutput
public NullOutput(boolean s)
- Constructor.
- Parameters:
s
- flag for stopping serialization as early as possible
write
public void write(int b)
- Overrides:
write
in class PrintOutput
flush
public void flush()
- Specified by:
flush
in interface Flushable
- Overrides:
flush
in class PrintOutput
close
public void close()
- Specified by:
close
in interface Closeable
- Overrides:
close
in class PrintOutput
finished
public boolean finished()
- Description copied from class:
PrintOutput
- Checks if stream can output more characters; can be overwritten to
interrupt streaming at some point.
- Overrides:
finished
in class PrintOutput
- Returns:
- result of check