public interface FileInput extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this
FileInput. |
default Optional<String> |
hintOfCurrentInputFileNameForLogging()
Gets a
String that hints the name of the current file input. |
boolean |
nextFile()
Switches the
FileInput to process the next file. |
Buffer |
poll()
|
boolean nextFile()
FileInput to process the next file.true if this FileInput has switched to the next file. false if no more files.void close()
FileInput.close in interface AutoCloseabledefault Optional<String> hintOfCurrentInputFileNameForLogging()
String that hints the name of the current file input.
The hint is only for human-readable logs, not to be stored as any record. Nothing is guaranteed in the hint. Plugins may change the hint without any notification when upgraded. The hint can be lost through a chain of plugin calls -- File Input Plugin, Decoder Plugins, and Parser Plugin.