Package org.frankframework.stream
Class ContentHandlerOutputStream
java.lang.Object
java.io.OutputStream
java.io.PipedOutputStream
org.frankframework.stream.ContentHandlerOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
,Thread.UncaughtExceptionHandler
public class ContentHandlerOutputStream
extends PipedOutputStream
implements Thread.UncaughtExceptionHandler
Helper class to convert character or byte based OutputStreams into a SAX event stream.
Uses OS pipes to convert an OutputStream into an InputStream
- Author:
- Gerrit van Brakel
-
Field Summary
-
Constructor Summary
ConstructorDescriptionContentHandlerOutputStream
(ContentHandler handler, ThreadConnector threadConnector) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
setException
(Throwable exception) void
uncaughtException
(Thread arg0, Throwable t) Methods inherited from class java.io.PipedOutputStream
connect, flush, write, write
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Field Details
-
log
protected org.apache.logging.log4j.Logger log
-
-
Constructor Details
-
ContentHandlerOutputStream
public ContentHandlerOutputStream(ContentHandler handler, ThreadConnector threadConnector) throws StreamingException - Throws:
StreamingException
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classPipedOutputStream
- Throws:
IOException
-
uncaughtException
- Specified by:
uncaughtException
in interfaceThread.UncaughtExceptionHandler
-
setException
-
getException
-