public class LineDecoder extends Object implements AutoCloseable, Iterable<String>
FileInput into iteration of lines.
Unlike embulk-core's org.embulk.spi.util.LineDecoder, it does not receive a task-defining
interface like DecoderTask. Use of(FileInput, Charset, LineDelimiter) instead.
LineDecoder decoder = LineDecoder.of(fileInput, charset, null);| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Iterator<String> |
iterator() |
boolean |
nextFile() |
static LineDecoder |
of(FileInput in,
Charset charset,
LineDelimiter lineDelimiterRecognized) |
String |
poll() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static LineDecoder of(FileInput in, Charset charset, LineDelimiter lineDelimiterRecognized)
public boolean nextFile()
public String poll()
public void close()
close in interface AutoCloseable