LogPrintWriter

A wrapper for a PrintWriter. This class has all the functionality of PrintWriter but has a public property OUTPUT_ON that can be set to false to turn off any printing or set to true to turn printing on.

Author

rossetti

Constructors

Link copied to clipboard
constructor(out: Writer)
constructor(out: OutputStream)
constructor(fileName: String)
constructor(file: File)
constructor(out: Writer, autoFlush: Boolean)
constructor(out: OutputStream, autoFlush: Boolean)
constructor(fileName: String, csn: String)
constructor(file: File, csn: String)

Properties

Link copied to clipboard

Controls whether any the PrintWriter functionality happens

Functions

Link copied to clipboard
open override fun append(c: Char): PrintWriter
open override fun append(csq: CharSequence): PrintWriter
open override fun append(csq: CharSequence, start: Int, end: Int): PrintWriter
Link copied to clipboard
open fun checkError(): Boolean
Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun flush()
Link copied to clipboard
open fun format(p0: String, vararg p1: Any): PrintWriter
open fun format(p0: Locale, p1: String, vararg p2: Any): PrintWriter
Link copied to clipboard
open override fun print(obj: Any)
open override fun print(b: Boolean)
open override fun print(c: Char)
open override fun print(s: CharArray)
open override fun print(d: Double)
open override fun print(f: Float)
open override fun print(i: Int)
open override fun print(l: Long)
open override fun print(s: String)
Link copied to clipboard
open override fun printf(format: String, vararg args: Any): PrintWriter
open override fun printf(l: Locale, format: String, vararg args: Any): PrintWriter
Link copied to clipboard
open override fun println()
open override fun println(x: Any)
open override fun println(x: Boolean)
open override fun println(x: Char)
open override fun println(x: CharArray)
open override fun println(x: Double)
open override fun println(x: Float)
open override fun println(x: Int)
open override fun println(x: Long)
open override fun println(x: String)
Link copied to clipboard
open override fun write(buf: CharArray)
open override fun write(c: Int)
open override fun write(s: String)
open override fun write(buf: CharArray, off: Int, len: Int)
open override fun write(s: String, off: Int, len: Int)