Methods Summary |
---|
public void | close()Close the stream, flushing it first. Once a stream has been closed,
further write() or flush() invocations will cause an IOException to be
thrown. Closing a previously-closed stream, however, has no effect.
m_os.close();
|
public void | flush()Flush the stream. If the stream has saved any characters from the
various write() methods in a buffer, write them immediately to their
intended destination. Then, if that destination is another character or
byte stream, flush it. Thus one flush() invocation will flush all the
buffers in a chain of Writers and OutputStreams.
m_os.flush();
|
public java.io.OutputStream | getOutputStream()Get the output stream where the events will be serialized to.
return m_os;
|
public java.io.Writer | getWriter()Get the writer that this writer directly chains to.
return null;
|
public void | write(char[] chars, int start, int length)Write a portion of an array of characters.
int n = length+start;
for (int i = start; i < n; i++)
{
m_os.write(chars[i]);
}
|
public void | write(int c)Write a single character. The character to be written is contained in
the 16 low-order bits of the given integer value; the 16 high-order bits
are ignored.
Subclasses that intend to support efficient single-character output
should override this method.
m_os.write(c);
|
public void | write(java.lang.String s)Write a string.
int n = s.length();
for (int i = 0; i < n; i++)
{
m_os.write(s.charAt(i));
}
|