public class JLineAgentInputReader extends Object implements AgentInputReader
| Constructor and Description |
|---|
JLineAgentInputReader(AgentMain agent) |
JLineAgentInputReader(AgentMain agent,
FileInputStream fis) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCompletor() |
void |
close()
Close the reader.
|
boolean |
isConsole()
Indicates if the input is coming from a console (i.e.
|
String |
readLine()
Reads a line from the input console.
|
String |
readLineNoEcho()
Read a line of input, but do not echo back to the user what is being typed.
|
public JLineAgentInputReader(AgentMain agent) throws IOException
IOExceptionpublic JLineAgentInputReader(AgentMain agent, FileInputStream fis) throws IOException
IOExceptionpublic void addCompletor()
public boolean isConsole()
AgentInputReaderisConsole in interface AgentInputReadertrue if console is the source of the input; false if file is the sourcepublic String readLine() throws IOException
AgentInputReaderreadLine in interface AgentInputReaderIOExceptionpublic String readLineNoEcho() throws IOException
AgentInputReaderreadLineNoEcho in interface AgentInputReaderIOExceptionpublic void close()
throws IOException
AgentInputReaderclose in interface AgentInputReaderIOExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.