public abstract class LogOutputStream
extends java.io.OutputStream
| Constructor and Description |
|---|
LogOutputStream()
Creates a new instance of this class.
|
LogOutputStream(int level)
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Writes all remaining data from the buffer.
|
void |
flush()
Flush this log stream.
|
int |
getMessageLevel() |
void |
write(byte[] b,
int off,
int len)
Write a block of characters to the output stream
|
void |
write(int cc)
Write the data to the buffer and flush the buffer, if a line separator is
detected.
|
public LogOutputStream()
public LogOutputStream(int level)
level - loglevel used to log data written to this stream.public void write(int cc)
throws java.io.IOException
write in class java.io.OutputStreamcc - data to log (byte).java.io.IOExceptionOutputStream.write(int)public void flush()
flush in interface java.io.Flushableflush in class java.io.OutputStreamOutputStream.flush()public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionOutputStream.close()public int getMessageLevel()
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamb - the array containing the dataoff - the offset into the array where data startslen - the length of blockjava.io.IOException - if the data cannot be written into the stream.OutputStream.write(byte[], int, int)Copyright © 2010 - 2023 Adobe. All Rights Reserved