Top Description Methods
com.google.common.io

public Interface LineProcessor<T extends @Nullable Object>

Annotations
@J2ktIncompatible
@GwtIncompatible
@ElementTypesAreNonnullByDefault
Imports
com.google.common.annotations.GwtIncompatible, .J2ktIncompatible, com.google.errorprone.annotations.CanIgnoreReturnValue, java.io.IOException, org.checkerframework.checker.nullness.qual.Nullable

A callback to be used with the streaming readLines methods.

processLine will be called for each line that is read, and should return false when you want to stop processing.

Author
Miles Barr
Since
1.0

Method Summary

Modifier and TypeMethod and Description
public T
getResult()

Return the result of processing all the lines.

public boolean

Returns:

true to continue processing, false to stop
processLine
(String
the line read from the input, without delimiter
line
)

This method will be called once for each line.

Method Detail

getResultback to summary
public T getResult()

Return the result of processing all the lines.

Annotations
@ParametricNullness
processLineback to summary
public boolean processLine(String line) throws IOException

This method will be called once for each line.

Parameters
line:String

the line read from the input, without delimiter

Returns:boolean

true to continue processing, false to stop

Annotations
@CanIgnoreReturnValue