com.liferay.portal.kernel.process.log
Class ProcessOutputStream
java.lang.Object
java.io.OutputStream
com.liferay.portal.kernel.io.unsync.UnsyncByteArrayOutputStream
com.liferay.portal.kernel.process.log.ProcessOutputStream
- All Implemented Interfaces:
- Closeable, Flushable, AutoCloseable
public class ProcessOutputStream
- extends UnsyncByteArrayOutputStream
| Methods inherited from class com.liferay.portal.kernel.io.unsync.UnsyncByteArrayOutputStream |
reset, size, toByteArray, toString, toString, unsafeGetByteArray, unsafeGetByteBuffer, write, write, write, writeTo |
ProcessOutputStream
public ProcessOutputStream(ObjectOutputStream objectOutputStream)
ProcessOutputStream
public ProcessOutputStream(ObjectOutputStream objectOutputStream,
boolean error)
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Specified by:
close in interface AutoCloseable- Overrides:
close in class OutputStream
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush in interface Flushable- Overrides:
flush in class OutputStream
- Throws:
IOException
setLogPrefix
public void setLogPrefix(byte[] logPrefix)
writeProcessCallable
public void writeProcessCallable(ProcessCallable<?> processCallable)
throws IOException
- Throws:
IOException