Package org.frankframework.util
Class StreamCaptureUtils
java.lang.Object
org.frankframework.util.StreamCaptureUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic InputStream
captureInputStream
(InputStream in, OutputStream capture, int maxSize) static OutputStream
captureOutputStream
(OutputStream stream, OutputStream capture, int maxSize) static Reader
captureReader
(Reader in, Writer capture, int maxSize) static Writer
captureWriter
(Writer writer, Writer capture, int maxSize) static OutputStream
limitSize
(OutputStream stream, int maxSize) Triggers the next byte after the threshold has been reached.static Writer
-
Field Details
-
DEFAULT_STREAM_CAPTURE_LIMIT
public static final int DEFAULT_STREAM_CAPTURE_LIMIT- See Also:
-
-
Constructor Details
-
StreamCaptureUtils
public StreamCaptureUtils()
-
-
Method Details
-
limitSize
Triggers the next byte after the threshold has been reached. If bytes are written in chunks it triggers after processing the entire chunk. -
limitSize
-
captureInputStream
-
captureOutputStream
public static OutputStream captureOutputStream(OutputStream stream, OutputStream capture, int maxSize) -
captureReader
-
captureWriter
-