Class SystemOutOutput

java.lang.Object
org.savantbuild.output.SystemOutOutput
All Implemented Interfaces:
Output

public class SystemOutOutput extends Object implements Output
Basic Savant output system. This writes to Appendables.
  • Constructor Details

    • SystemOutOutput

      public SystemOutOutput(boolean colorize)
  • Method Details

    • debug

      public Output debug(String message, Object... values)
      Description copied from interface: Output
      Outputs a debug message along with the given values. This uses printf if there are values and DOES NOT append a newline character to the end of message. If there are no values, this outputs the message via print.
      Specified by:
      debug in interface Output
      Parameters:
      message - The message.
      values - Values for the message.
      Returns:
      This.
    • debugln

      public Output debugln(String message, Object... values)
      Description copied from interface: Output
      Outputs a debug message along with the given values. This uses printf if there are values and appends a newline character to the end of message. If there are no values, this outputs the message via println.
      Specified by:
      debugln in interface Output
      Parameters:
      message - The message.
      values - Values for the message.
      Returns:
      This.
    • debug

      public Output debug(Throwable t)
      Description copied from interface: Output
      Outputs a debug message with the stack trace for the given Throwable.
      Specified by:
      debug in interface Output
      Parameters:
      t - The Throwable to output.
      Returns:
      This.
    • disableDebug

      public Output disableDebug()
      Description copied from interface: Output
      Disables debug messages.
      Specified by:
      disableDebug in interface Output
      Returns:
      This.
    • enableDebug

      public Output enableDebug()
      Description copied from interface: Output
      Enables debug messages.
      Specified by:
      enableDebug in interface Output
      Returns:
      This.
    • error

      public Output error(String message, Object... values)
      Description copied from interface: Output
      Outputs an error message along with the given values. This uses printf if there are values and DOES NOT append a newline character to the end of message. If there are no values, this outputs the message via println.
      Specified by:
      error in interface Output
      Parameters:
      message - The message.
      values - Values for the message.
      Returns:
      This.
    • errorln

      public Output errorln(String message, Object... values)
      Description copied from interface: Output
      Outputs an error message along with the given values. This uses printf if there are values and appends a newline character to the end of message. If there are no values, this outputs the message via println.
      Specified by:
      errorln in interface Output
      Parameters:
      message - The message.
      values - Values for the message.
      Returns:
      This.
    • info

      public Output info(String message, Object... values)
      Description copied from interface: Output
      Outputs an info message along with the given values. This uses printf if there are values and DOES NOT append a newline character to the end of message. If there are no values, this outputs the message via println.
      Specified by:
      info in interface Output
      Parameters:
      message - The message.
      values - Values for the message.
      Returns:
      This.
    • infoln

      public Output infoln(String message, Object... values)
      Description copied from interface: Output
      Outputs an info message along with the given values. This uses printf if there are values and appends a newline character to the end of message. If there are no values, this outputs the message via println.
      Specified by:
      infoln in interface Output
      Parameters:
      message - The message.
      values - Values for the message.
      Returns:
      This.
    • infoln

      public Output infoln(int color, String message, Object... values)
      Description copied from interface: Output
      Outputs an info message along with the given values. This uses printf if there are values and appends a newline character to the end of message. If there are no values, this outputs the message via println.
      Specified by:
      infoln in interface Output
      Parameters:
      color - The ANSI 256 color for the entire message.
      message - The message.
      values - Values for the message.
      Returns:
      This.
    • warning

      public Output warning(String message, Object... values)
      Description copied from interface: Output
      Outputs a warning message along with the given values. This uses printf if there are values and DOES NOT append a newline character to the end of message. If there are no values, this outputs the message via println.
      Specified by:
      warning in interface Output
      Parameters:
      message - The message.
      values - Values for the message.
      Returns:
      This.
    • warningln

      public Output warningln(String message, Object... values)
      Description copied from interface: Output
      Outputs a warning message along with the given values. This uses printf if there are values and appends a newline character to the end of message. If there are no values, this outputs the message via println.
      Specified by:
      warningln in interface Output
      Parameters:
      message - The message.
      values - Values for the message.
      Returns:
      This.