public class LoggedDataOutputStream extends FilterOutputStream
out| Constructor and Description |
|---|
LoggedDataOutputStream(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() |
OutputStream |
getUnderlyingStream() |
void |
setUnderlyingStream(OutputStream os) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeBytes(String line)
Write a line to the stream, logging it too.
|
void |
writeBytes(String line,
String encoding)
Write a line to the stream, logging it too.
|
void |
writeChars(String line)
Deprecated.
Line to to bytes conversion is host specifics. Use raw byte
access methods insted.
|
flushpublic LoggedDataOutputStream(OutputStream out)
out - the stream@Deprecated public void writeChars(String line) throws IOException
IOExceptionpublic void writeBytes(String line) throws IOException
writeBytes(String, String) if possible.IOExceptionpublic void writeBytes(String line, String encoding) throws IOException
IOExceptionpublic void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionpublic OutputStream getUnderlyingStream()
public void setUnderlyingStream(OutputStream os)
public long getCounter()
Copyright © 2013. All rights reserved.