Class SysoutMiddleman.Sysout

java.lang.Object
java.io.OutputStream
me.autobot.lib.telemetry.SysoutMiddleman.Sysout
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Enclosing class:
SysoutMiddleman

public static class SysoutMiddleman.Sysout extends OutputStream
Sysout messages.
  • Constructor Details

    • Sysout

      public Sysout(PrintStream original, int type)
      Creates a new Sysout object.
      Parameters:
      original - The original PrintStream.
      type - The type of message. 0 for System.out, 1 for System.err.
  • Method Details

    • getError

      public static SysoutMiddleman.Sysout getError()
      Gets the error sysout.
      Returns:
      The error sysout.
    • getOut

      public static SysoutMiddleman.Sysout getOut()
      Gets the output sysout.
      Returns:
      The output sysout.
    • write

      public void write(int b)
      Writes a byte to the output stream.
      Specified by:
      write in class OutputStream
      Parameters:
      b - The byte to write.
    • getType

      public int getType()
      Gets the type of message.
      Returns:
      The type of message.
    • addListener

      public void addListener(SysoutMiddleman.Sysout.Listener listener)
      Adds a listener to the sysout.
      Parameters:
      listener - The listener to add.
    • removeListener

      public void removeListener(SysoutMiddleman.Sysout.Listener listener)
      Removes a listener from the sysout.
      Parameters:
      listener - The listener to remove.