Class AfterContentTransformer.Source

  • Enclosing class:
    AfterContentTransformer

    public class AfterContentTransformer.Source
    extends java.lang.Object

    The source from where the original content is read to be transformed.

    The input stream provided by this class supports the InputStream.reset() method so that the stream can be rewound to the beginning.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.InputStream stream  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Source()  
    • 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.InputStream getInputStream()  
      • Methods inherited from class java.lang.Object

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

      • stream

        private final java.io.InputStream stream
    • Constructor Detail

      • Source

        private Source()
                throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getInputStream

        public java.io.InputStream getInputStream()
        Returns:
        an input stream to read the original content from
      • drainTo

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