Package org.conscrypt

Class Logger.Stream

All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable
Enclosing class:
Logger

public static class Logger.Stream
extends PrintStream
  • Constructor Details

    • Stream

      public Stream​(String name)
  • Method Details

    • print

      public void print​(String msg)
      Description copied from class: PrintStream
      Prints a string to the target stream. The string is converted to an array of bytes using the encoding chosen during the construction of this stream. The bytes are then written to the target stream with write(int).

      If an I/O error occurs, this stream's error state is set to true.

      Overrides:
      print in class PrintStream
      Parameters:
      msg - the string to print to the target stream.
      See Also:
      PrintStream.write(int)
    • newIndent

      public void newIndent()
    • endIndent

      public void endIndent()
    • println

      public void println​(String msg)
      Description copied from class: PrintStream
      Prints a string followed by a newline. The string is converted to an array of bytes using the encoding chosen during the construction of this stream. The bytes are then written to the target stream with write(int).

      If an I/O error occurs, this stream's error state is set to true.

      Overrides:
      println in class PrintStream
      Parameters:
      msg - the string to print to the target stream.
      See Also:
      PrintStream.write(int)
    • print

      public void print​(byte[] data)
    • print

      public void print​(byte[] data, int offset, int len)
    • printAsHex

      public void printAsHex​(int perLine, String prefix, String delimiter, byte[] data)
    • printAsHex

      public void printAsHex​(int perLine, String prefix, String delimiter, byte[] data, int offset, int len)