Class ConsumerPrintStream

    • Method Detail

      • newStream

        public static ConsumerPrintStream newStream​(Consumer<String> consumer)
        Returns a new stream for the given consumer.
        Parameters:
        consumer - The consumer.
        Returns:
        The stream.
      • write

        public void write​(byte[] bytes,
                          int offset,
                          int length)
        Overrides:
        write in class PrintStream