Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
| Modifier and Type | Field and Description |
|---|---|
protected TerminalWriter |
err |
protected Reader |
in |
protected TerminalWriter |
out |
protected String |
status |
| Constructor and Description |
|---|
ShellInterpreter(Reader in,
TerminalWriter out,
TerminalWriter err) |
ShellInterpreter(Reader in,
TerminalWriter out,
TerminalWriter err,
String... args) |
ShellInterpreter(Reader in,
Writer out,
Writer err) |
ShellInterpreter(Reader in,
Writer out,
Writer err,
String[] args) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(String[] args)
Clears the screen.
|
protected abstract String |
getName() |
long |
getPID() |
protected abstract String |
getPrompt() |
protected abstract boolean |
handleCommand(String[] args)
Processes one command and returns.
|
protected boolean |
isAlive() |
protected boolean |
isInteractive() |
void |
jobs(String[] args) |
protected abstract ShellInterpreter |
newShellInterpreter(Reader in,
TerminalWriter out,
TerminalWriter err,
String[] args) |
void |
run()
If arguments were provided, executes that command.
|
protected final Reader in
protected final TerminalWriter out
protected final TerminalWriter err
protected String status
public ShellInterpreter(Reader in, TerminalWriter out, TerminalWriter err)
public ShellInterpreter(Reader in, TerminalWriter out, TerminalWriter err, String... args)
public final void clear(String[] args) throws IOException
IOExceptionprotected abstract String getName()
public final long getPID()
protected abstract String getPrompt() throws IOException, SQLException
IOExceptionSQLExceptionprotected abstract boolean handleCommand(String[] args) throws IOException, SQLException
IOExceptionSQLExceptionprotected final boolean isAlive()
protected final boolean isInteractive()
public final void jobs(String[] args)
protected abstract ShellInterpreter newShellInterpreter(Reader in, TerminalWriter out, TerminalWriter err, String[] args)
Copyright © 2000–2016 AO Industries, Inc.. All rights reserved.