Class StreamCaptureUtils

java.lang.Object
org.frankframework.util.StreamCaptureUtils

public class StreamCaptureUtils extends Object
  • Field Details

    • DEFAULT_STREAM_CAPTURE_LIMIT

      public static final int DEFAULT_STREAM_CAPTURE_LIMIT
      See Also:
  • Constructor Details

    • StreamCaptureUtils

      public StreamCaptureUtils()
  • Method Details

    • limitSize

      public static OutputStream limitSize(OutputStream stream, int maxSize)
      Triggers the next byte after the threshold has been reached. If bytes are written in chunks it triggers after processing the entire chunk.
    • limitSize

      public static Writer limitSize(Writer writer, int maxSize)
    • captureInputStream

      public static InputStream captureInputStream(InputStream in, OutputStream capture, int maxSize)
    • captureOutputStream

      public static OutputStream captureOutputStream(OutputStream stream, OutputStream capture, int maxSize)
    • captureReader

      public static Reader captureReader(Reader in, Writer capture, int maxSize)
    • captureWriter

      public static Writer captureWriter(Writer writer, Writer capture, int maxSize)