java.lang.Object
java.io.OutputStream
net.botwithus.rs3.script.ScriptConsole
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLineToConsole
(String line) void
addLineToConsole
(String line, boolean sameLine) void
clear()
void
close()
void
flush()
String[]
int
void
initializeLogFile
(Path path, String name) boolean
static void
static void
static void
static void
void
setInputBuffer
(String inputBuffer) void
setLineIndex
(int lineIndex) void
setScrollToBottom
(boolean scrollToBottom) void
write
(int b) Methods inherited from class java.io.OutputStream
nullOutputStream, write, write
-
Field Details
-
MAX_CONSOLE_LINES
public static final int MAX_CONSOLE_LINES- See Also:
-
-
Constructor Details
-
ScriptConsole
public ScriptConsole()
-
-
Method Details
-
initializeLogFile
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
addLineToConsole
-
addLineToConsole
-
isScrollToBottom
public boolean isScrollToBottom() -
setScrollToBottom
public void setScrollToBottom(boolean scrollToBottom) -
getInputBuffer
-
setInputBuffer
-
clear
public void clear() -
getConsoleLines
-
getLineIndex
public int getLineIndex() -
setLineIndex
public void setLineIndex(int lineIndex) -
println
-
println
-
print
-
print
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-