ConsoleOut

object ConsoleOut
Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def bufferedWriterOut(out: BufferedWriter): ConsoleOut
def overwriteContaining(s: String): (String, String) => Boolean
def printStreamOut(out: PrintStream): ConsoleOut
def printWriterOut(out: PrintWriter): ConsoleOut
def systemOutOverwrite(f: (String, String) => Boolean): ConsoleOut

ConsoleOut instance that is backed by System.out. It overwrites the previously printed line if the function f(lineToWrite, previousLine) returns true.

ConsoleOut instance that is backed by System.out. It overwrites the previously printed line if the function f(lineToWrite, previousLine) returns true.

The ConsoleOut returned by this method assumes that the only newlines are from println calls and not in the String arguments.