public class LoggedDataOutputStream
extends java.io.FilterOutputStream
Constructor and Description |
---|
LoggedDataOutputStream(java.io.OutputStream out)
Construct a logged stream using the specified underlying stream
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this input stream and releases any system resources associated
with the stream.
|
long |
getCounter() |
java.io.OutputStream |
getUnderlyingStream() |
void |
setUnderlyingStream(java.io.OutputStream os) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeBytes(java.lang.String line)
Write a line to the stream, logging it too.
|
void |
writeBytes(java.lang.String line,
java.lang.String encoding)
Write a line to the stream, logging it too.
|
void |
writeChars(java.lang.String line)
Deprecated.
Line to to bytes conversion is host specifics.
Use raw byte access methods insted.
|
public LoggedDataOutputStream(java.io.OutputStream out)
out
- the streampublic void writeChars(java.lang.String line) throws java.io.IOException
java.io.IOException
public void writeBytes(java.lang.String line) throws java.io.IOException
writeBytes(String, String)
if possible.java.io.IOException
public void writeBytes(java.lang.String line, java.lang.String encoding) throws java.io.IOException
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void write(byte[] b) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.FilterOutputStream
java.io.IOException
public java.io.OutputStream getUnderlyingStream()
public void setUnderlyingStream(java.io.OutputStream os)
public long getCounter()
Built on January 12 2013. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.