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 defaultPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCommandPrompt()
java.lang.String
getDefaultPath()
java.io.Writer
getUnclosableWriter()
void
setCommandPrompt(java.lang.String commandPrompt)
void
setService(ShellService service)
-
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, flush, getEncoding, getOutput, getWriter, isReading, offStyle, readCommandLine, readCommandLine, readLine, readLine, readLine, readPassword, readPassword, readPassword, setStyle, write, write, writeLine, writeLine, writeLine
-
-
-
-
Method Detail
-
getDefaultPath
public java.lang.String getDefaultPath()
- Specified by:
getDefaultPath
in interfaceConsole
-
getCommandPrompt
public java.lang.String getCommandPrompt()
- Specified by:
getCommandPrompt
in interfaceConsole
-
setCommandPrompt
public void setCommandPrompt(java.lang.String commandPrompt)
- Specified by:
setCommandPrompt
in interfaceConsole
-
getUnclosableWriter
public java.io.Writer getUnclosableWriter() throws java.io.UnsupportedEncodingException
- Specified by:
getUnclosableWriter
in interfaceConsole
- Throws:
java.io.UnsupportedEncodingException
-
setService
public void setService(ShellService service)
- Specified by:
setService
in interfaceConsole
-
-