Class ScriptConsole

java.lang.Object
java.io.OutputStream
net.botwithus.rs3.script.ScriptConsole
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public final class ScriptConsole extends OutputStream
  • Field Details

  • Constructor Details

    • ScriptConsole

      public ScriptConsole()
  • Method Details

    • initializeLogFile

      public void initializeLogFile(Path path, String name) throws IOException
      Throws:
      IOException
    • write

      public void write(int b) throws IOException
      Specified by:
      write in class OutputStream
      Throws:
      IOException
    • addLineToConsole

      public void addLineToConsole(String line)
    • addLineToConsole

      public void addLineToConsole(String line, boolean sameLine)
    • isScrollToBottom

      public boolean isScrollToBottom()
    • setScrollToBottom

      public void setScrollToBottom(boolean scrollToBottom)
    • getInputBuffer

      public String getInputBuffer()
    • setInputBuffer

      public void setInputBuffer(String inputBuffer)
    • clear

      public void clear()
    • getConsoleLines

      public String[] getConsoleLines()
    • getLineIndex

      public int getLineIndex()
    • setLineIndex

      public void setLineIndex(int lineIndex)
    • println

      public static void println(Object value)
    • println

      public static void println(String format, Object... args)
    • print

      public static void print(String message)
    • print

      public static void print(String format, Object... args)
    • flush

      public void flush() throws IOException
      Specified by:
      flush in interface Flushable
      Overrides:
      flush in class OutputStream
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class OutputStream
      Throws:
      IOException