|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Writer com.anthonyeden.lib.io.NullWriter
A null writer will not write any data. This class includes a shared NullWriter instance which can be used throughout your application wherever a null writer is required.
Field Summary | |
static NullWriter |
NULL_WRITER
Shared NullWriter instance. |
Fields inherited from class java.io.Writer |
lock |
Constructor Summary | |
NullWriter()
Constructor. |
Method Summary | |
void |
close()
Close the stream. |
void |
flush()
Flush the data that is currently in the buffer. |
void |
write(char[] charArray)
Write the given character array to the output stream. |
void |
write(char[] charArray,
int offset,
int length)
Write the given character array to the output stream beginning from the given offset and proceeding to until the given length is reached. |
void |
write(int c)
Write the given character to the output stream. |
void |
write(java.lang.String string)
Write the given String to the output stream. |
void |
write(java.lang.String string,
int offset,
int length)
Write the given String to the output stream beginning from the given offset and proceeding to until the given length is reached. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final NullWriter NULL_WRITER
Constructor Detail |
public NullWriter()
Method Detail |
public void close()
public void flush() throws java.io.IOException
java.io.IOException
public void write(char[] charArray) throws java.io.IOException
charArray
- The character array
java.io.IOException
public void write(char[] charArray, int offset, int length) throws java.io.IOException
charArray
- The character arrayoffset
- The start offsetlength
- The length to write
java.io.IOException
public void write(int c) throws java.io.IOException
c
- The character
java.io.IOException
public void write(java.lang.String string) throws java.io.IOException
string
- The String
java.io.IOException
public void write(java.lang.String string, int offset, int length) throws java.io.IOException
string
- The Stringoffset
- The start offsetlength
- The length to write
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |