Package picocli

Class CommandLine.ColoredStackTraceWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.Appendable, java.lang.AutoCloseable
    Enclosing class:
    CommandLine

    static class CommandLine.ColoredStackTraceWriter
    extends java.io.StringWriter
    Extends StringWriter to use ColorScheme. Allows separating exception messages from stack traces by intercepting write method.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void write​(java.lang.String str, int off, int len)  
      • Methods inherited from class java.io.StringWriter

        append, append, append, close, flush, getBuffer, toString, write, write, write
      • Methods inherited from class java.io.Writer

        nullWriter, write
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • write

        public void write​(java.lang.String str,
                          int off,
                          int len)
        Overrides:
        write in class java.io.StringWriter