| java.lang.Object java.io.Writer com.anthonyeden.lib.io.NullWriter
NullWriter | public class NullWriter extends Writer (Code) | | 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.
author: Anthony Eden |
Constructor Summary | |
public | NullWriter() Constructor. |
Method Summary | |
public void | close() Close the stream. | public void | flush() Flush the data that is currently in the buffer. | public void | write(char[] charArray) Write the given character array to the output stream. | public 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. | public void | write(int c) Write the given character to the output stream. | public void | write(String string) Write the given String to the output stream. | public void | write(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. |
NULL_WRITER | final public static NullWriter NULL_WRITER(Code) | | Shared NullWriter instance. You should be able to use
this shared instance throughout your system wherever a null
writer is required since the data is discarded.
|
NullWriter | public NullWriter()(Code) | | Constructor.
|
close | public void close()(Code) | | Close the stream.
|
write | public void write(char[] charArray) throws IOException(Code) | | Write the given character array to the output stream.
Parameters: charArray - The character array throws: IOException - |
write | public void write(char[] charArray, int offset, int length) throws IOException(Code) | | Write the given character array to the output stream beginning from
the given offset and proceeding to until the given length is reached.
Parameters: charArray - The character array Parameters: offset - The start offset Parameters: length - The length to write throws: IOException - |
write | public void write(int c) throws IOException(Code) | | Write the given character to the output stream.
Parameters: c - The character throws: IOException - |
write | public void write(String string, int offset, int length) throws IOException(Code) | | Write the given String to the output stream beginning from the given offset
and proceeding to until the given length is reached.
Parameters: string - The String Parameters: offset - The start offset Parameters: length - The length to write throws: IOException - |
|
|