Class WriterStreamConsumer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.BufferedWriter writer  
    • Constructor Summary

      Constructors 
      Constructor Description
      WriterStreamConsumer​(java.io.Writer writer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void consumeLine​(java.lang.String line)
      Called when the StreamPumper pumps a line from the Stream.
      • Methods inherited from class java.lang.Object

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

      • writer

        private final java.io.BufferedWriter writer
    • Constructor Detail

      • WriterStreamConsumer

        public WriterStreamConsumer​(java.io.Writer writer)
        Parameters:
        writer - Writer
    • Method Detail

      • consumeLine

        public void consumeLine​(java.lang.String line)
                         throws java.io.IOException
        Called when the StreamPumper pumps a line from the Stream.
        Specified by:
        consumeLine in interface StreamConsumer
        Parameters:
        line - The line to be consumed.
        Throws:
        java.io.IOException - if consuming line fails.