java.lang.Object
java.io.Writer
org.mortbay.util.IO.NullWrite
- Enclosing class:
- IO
- private static class IO.NullWrite
- extends java.io.Writer
|
Method Summary |
void |
close()
This method closes the stream. |
void |
flush()
This method forces any data that may have been buffered to be written
to the underlying output device. |
void |
write(char[] b)
This method all the writes char from the passed array to the output
stream. |
void |
write(char[] b,
int o,
int l)
This method writes len char from the specified array
buf starting at index offset into the array. |
void |
write(int b)
This method writes a single char to the output stream. |
void |
write(java.lang.String s)
This method writes all the characters in a String to the
output. |
void |
write(java.lang.String s,
int o,
int l)
This method writes len chars from the String
starting at position offset. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IO.NullWrite
private IO.NullWrite()
close
public void close()
- Description copied from class:
java.io.Writer
- This method closes the stream. Any internal or native resources
associated
with this stream are freed. Any subsequent attempt to access the stream
might throw an exception.
This method in this class does nothing.
flush
public void flush()
- Description copied from class:
java.io.Writer
- This method forces any data that may have been buffered to be written
to the underlying output device. Please note that the host environment
might perform its own buffering unbeknowst to Java. In that case, a
write made (for example, to a disk drive) might be cached in OS
buffers instead of actually being written to disk.
write
public void write(char[] b)
- Description copied from class:
java.io.Writer
- This method all the writes char from the passed array to the output
stream. This method is equivalent to
write(buf, 0, buf.length) which
is exactly how it is implemented in this class.
write
public void write(char[] b,
int o,
int l)
- Description copied from class:
java.io.Writer
- This method writes
len char from the specified array
buf starting at index offset into the array.
Subclasses must provide an implementation of this abstract method.
write
public void write(int b)
- Description copied from class:
java.io.Writer
- This method writes a single char to the output stream.
write
public void write(java.lang.String s)
- Description copied from class:
java.io.Writer
- This method writes all the characters in a
String to the
output.
write
public void write(java.lang.String s,
int o,
int l)
- Description copied from class:
java.io.Writer
- This method writes
len chars from the String
starting at position offset.