Class LoggerPrintStream

All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class LoggerPrintStream extends PrintStream
A PrintStream implementation that writes to a UIMA logger. Useful if you have a UIMA component that uses a 3rd-party package that logs to a PrintStream, and you want to redirect the output to the UIMA log.

Note that only the output of print and println calls goes to the logger. Calls to the write methods are ignored since they take binary data which cannot be easily redirected to the logger.