Class LineCollector

  • All Implemented Interfaces:
    com.google.common.io.LineProcessor<java.util.List<java.lang.String>>

    public class LineCollector
    extends java.lang.Object
    implements com.google.common.io.LineProcessor<java.util.List<java.lang.String>>
    Implementation of the LineProcessor that will append each line into an array and provide the array as the processor's result.
    • Constructor Summary

      Constructors 
      Constructor Description
      LineCollector()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getResult()  
      boolean processLine​(java.lang.String line)  
      • Methods inherited from class java.lang.Object

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

      • LineCollector

        public LineCollector()
    • Method Detail

      • processLine

        public boolean processLine​(java.lang.String line)
                            throws java.io.IOException
        Specified by:
        processLine in interface com.google.common.io.LineProcessor<java.util.List<java.lang.String>>
        Throws:
        java.io.IOException
      • getResult

        public java.util.List<java.lang.String> getResult()
        Specified by:
        getResult in interface com.google.common.io.LineProcessor<java.util.List<java.lang.String>>