|
GXPARSE hosted by |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Writer
ca.gorman.io.NullOutputWriter
public class NullOutputWriter
Writer that discards all output. Used when sending output to a different
Writer is the simplest way to discard the output. This class is the Java
equivalent of the /dev/null device in Unix and Linux or the
nul device in Windows.
| Field Summary |
|---|
| Fields inherited from class java.io.Writer |
|---|
lock |
| Constructor Summary | |
|---|---|
NullOutputWriter()
|
|
| Method Summary | |
|---|---|
void |
close()
Do nothing. |
void |
flush()
Do nothing. |
void |
write(char[] cbuf)
Do nothing. |
void |
write(char[] cbuf,
int off,
int len)
Do nothing. |
void |
write(int c)
Do nothing. |
void |
write(String str)
Do nothing. |
void |
write(String str,
int off,
int len)
Do nothing. |
| Methods inherited from class java.io.Writer |
|---|
append, append, append |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullOutputWriter()
| Method Detail |
|---|
public void close()
throws IOException
Do nothing.
close in interface Closeableclose in class WriterIOExceptionWriter.close()
public void flush()
throws IOException
Do nothing.
flush in interface Flushableflush in class WriterIOExceptionWriter.flush()
public void write(char[] cbuf)
throws IOException
Do nothing.
write in class WriterIOExceptionWriter.write(char[])
public void write(char[] cbuf,
int off,
int len)
throws IOException
Do nothing.
write in class WriterIOExceptionWriter.write(char[], int, int)
public void write(int c)
throws IOException
Do nothing.
write in class WriterIOExceptionWriter.write(int)
public void write(String str)
throws IOException
Do nothing.
write in class WriterIOExceptionWriter.write(String)
public void write(String str,
int off,
int len)
throws IOException
Do nothing.
write in class WriterIOExceptionWriter.write(String, int, int)
|
GXPARSE download | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||