org.netbeans.lib.cvsclient.util
Class LoggedDataOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.netbeans.lib.cvsclient.util.LoggedDataOutputStream
- public class LoggedDataOutputStream
- extends java.io.FilterOutputStream
A data output stream that also logs everything sent to a Writer (via the
logger).
Fields inherited from class java.io.FilterOutputStream |
out |
Constructor Summary |
LoggedDataOutputStream(java.io.OutputStream out)
Construct a logged stream using the specified underlying stream |
Method Summary |
void |
close()
Closes this input stream and releases any system resources associated
with the stream. |
java.io.OutputStream |
getUnderlyingStream()
|
void |
setUnderlyingStream(java.io.OutputStream os)
|
void |
writeBytes(java.lang.String line)
Write a line to the stream, logging it too |
void |
writeChars(java.lang.String line)
Write a line to the stream, logging it too. |
Methods inherited from class java.io.FilterOutputStream |
flush, write, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggedDataOutputStream
public LoggedDataOutputStream(java.io.OutputStream out)
- Construct a logged stream using the specified underlying stream
writeChars
public void writeChars(java.lang.String line)
throws java.io.IOException
- Write a line to the stream, logging it too. For compatibility reasons
only. Does exactly the same what writeBytes() does.
- Throws:
java.io.IOException
writeBytes
public void writeBytes(java.lang.String line)
throws java.io.IOException
- Write a line to the stream, logging it too
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Closes this input stream and releases any system resources associated
with the stream.
- Throws:
java.io.IOException
getUnderlyingStream
public java.io.OutputStream getUnderlyingStream()
setUnderlyingStream
public void setUnderlyingStream(java.io.OutputStream os)
Built on February 19 2008. | Portions Copyright 1997-2003 Sun Microsystems, Inc. All rights reserved.