public class FileInputProvider extends Object implements InputProvider, Closeable
InputProvider
that reads input from file-like sources.
Still uses a Parser
to interpret word boundaries. Supports backslashes at end
of line to signal line continuation.
Constructor and Description |
---|
FileInputProvider(Reader reader,
org.jline.reader.Parser parser) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Input |
readInput()
Return text entered by user to invoke commands.
|
public FileInputProvider(Reader reader, org.jline.reader.Parser parser)
public Input readInput()
InputProvider
Returning null indicates end of input, requesting shell exit.
readInput
in interface InputProvider
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.