Class PlainTextConsoleUtils

java.lang.Object
com.splunk.splunkjenkins.utils.PlainTextConsoleUtils

public class PlainTextConsoleUtils extends Object
  • Constructor Details

    • PlainTextConsoleUtils

      public PlainTextConsoleUtils()
  • Method Details

    • arrayIndexOf

      public static int arrayIndexOf(byte[] buf, int start, int end, byte[] matches)
    • decodeConsole

      public static void decodeConsole(byte[] in, int length, ByteArrayOutputStream out)
      the logical extracted from PlainTextConsoleOutputStream console annotation will be removed, e.g. Input:Started by user ESC[8mha:AAAAlh+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzOEgYu/dLi1CL9vNKcHACFIKlWvwAAAA==ESC[0manonymous Output:Started by user anonymous
      Parameters:
      in - the byte array
      length - how many bytes we want to read in
      out - write max(length) to out
      See Also: