Class AfterContentTransformer.Sink

  • Enclosing class:
    AfterContentTransformer

    public class AfterContentTransformer.Sink
    extends java.lang.Object

    The target to where the transformed content is written after the transformation.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<java.nio.ByteBuffer> sinkBuffers  
      private java.io.OutputStream stream  
    • Constructor Summary

      Constructors 
      Constructor Description
      Sink()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void drainTo​(java.util.List<java.nio.ByteBuffer> output)  
      java.io.OutputStream getOutputStream()  
      private void overflow​(java.nio.ByteBuffer output)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • sinkBuffers

        private final java.util.List<java.nio.ByteBuffer> sinkBuffers
      • stream

        private final java.io.OutputStream stream
    • Constructor Detail

      • Sink

        public Sink()
    • Method Detail

      • getOutputStream

        public java.io.OutputStream getOutputStream()
        Returns:
        an output stream to write the transformed content to
      • overflow

        private void overflow​(java.nio.ByteBuffer output)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • drainTo

        private void drainTo​(java.util.List<java.nio.ByteBuffer> output)
                      throws java.io.IOException
        Throws:
        java.io.IOException