Package com.aspectran.shell.console
Class AbstractConsole
- java.lang.Object
-
- com.aspectran.shell.console.AbstractConsole
-
- All Implemented Interfaces:
Console
- Direct Known Subclasses:
DefaultConsole
,JLineConsole
public abstract class AbstractConsole extends java.lang.Object implements Console
The Abstract Class for Console I/O.Created: 2017. 3. 4.
-
-
Field Summary
-
Fields inherited from interface com.aspectran.shell.console.Console
DEFAULT_COMMAND_PROMPT
-
-
Constructor Summary
Constructors Constructor Description AbstractConsole(java.lang.String encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCommandPrompt()
java.lang.String
getEncoding()
CommandInterpreter
getInterpreter()
java.io.File
getWorkingDir()
void
setCommandPrompt(java.lang.String commandPrompt)
void
setInterpreter(CommandInterpreter interpreter)
void
setWorkingDir(java.io.File workingDir)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.aspectran.shell.console.Console
clearScreen, confirmQuit, confirmRestart, confirmRestart, getOutput, getStyles, getWriter, isReading, readCommandLine, readCommandLine, readLine, readLine, readLine, readPassword, readPassword, readPassword, setStyle, styleOff, write, write, writeError, writeError, writeLine, writeLine, writeLine
-
-
-
-
Method Detail
-
getCommandPrompt
public java.lang.String getCommandPrompt()
- Specified by:
getCommandPrompt
in interfaceConsole
-
setCommandPrompt
public void setCommandPrompt(java.lang.String commandPrompt)
- Specified by:
setCommandPrompt
in interfaceConsole
-
getEncoding
public java.lang.String getEncoding()
- Specified by:
getEncoding
in interfaceConsole
-
getWorkingDir
public java.io.File getWorkingDir()
- Specified by:
getWorkingDir
in interfaceConsole
-
setWorkingDir
public void setWorkingDir(java.io.File workingDir)
- Specified by:
setWorkingDir
in interfaceConsole
-
getInterpreter
public CommandInterpreter getInterpreter()
- Specified by:
getInterpreter
in interfaceConsole
-
setInterpreter
public void setInterpreter(CommandInterpreter interpreter)
- Specified by:
setInterpreter
in interfaceConsole
-
-