public class LogOutputStream extends OutputStream
org.apache.commons.exec.LogOutputStream
Constructor and Description |
---|
LogOutputStream(org.slf4j.Logger logger) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Writes all remaining data from the buffer.
|
void |
flush()
Flush this log stream.
|
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.
|
write
public void write(int cc)
write
in class OutputStream
cc
- data to log (byte).OutputStream.write(int)
public void flush()
flush
in interface Flushable
flush
in class OutputStream
OutputStream.flush()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
- if an I/O error occursOutputStream.close()
public void write(byte[] b, int off, int len)
write
in class OutputStream
b
- the array containing the dataoff
- the offset into the array where data startslen
- the length of blockOutputStream.write(byte[], int, int)
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.