public class JavaAgentInputReader extends Object implements AgentInputReader
| Constructor and Description |
|---|
JavaAgentInputReader() |
JavaAgentInputReader(FileReader fr) |
| Modifier and Type | Method and Description |
|---|---|
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 JavaAgentInputReader()
throws IOException
IOExceptionpublic JavaAgentInputReader(FileReader fr) throws IOException
IOExceptionpublic 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.