|
GXPARSE hosted by | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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 Closeable
close
in class Writer
IOException
Writer.close()
public void flush() throws IOException
Do nothing.
flush
in interface Flushable
flush
in class Writer
IOException
Writer.flush()
public void write(char[] cbuf) throws IOException
Do nothing.
write
in class Writer
IOException
Writer.write(char[])
public void write(char[] cbuf, int off, int len) throws IOException
Do nothing.
write
in class Writer
IOException
Writer.write(char[], int, int)
public void write(int c) throws IOException
Do nothing.
write
in class Writer
IOException
Writer.write(int)
public void write(String str) throws IOException
Do nothing.
write
in class Writer
IOException
Writer.write(String)
public void write(String str, int off, int len) throws IOException
Do nothing.
write
in class Writer
IOException
Writer.write(String, int, int)
|
GXPARSE download | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |