Package com.android.utils
Class LineCollector
- java.lang.Object
-
- com.android.utils.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 theLineProcessorthat 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()booleanprocessLine(java.lang.String line)
-
-
-
Method Detail
-
processLine
public boolean processLine(java.lang.String line) throws java.io.IOException- Specified by:
processLinein interfacecom.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:
getResultin interfacecom.google.common.io.LineProcessor<java.util.List<java.lang.String>>
-
-