class EasyWriter extends Writer
The EasyWriter
class makes it easy to switch between writing to standard output
and a (log) file.
- Alphabetic
- By Inheritance
- EasyWriter
- Writer
- Flushable
- Closeable
- AutoCloseable
- Appendable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new EasyWriter(project: String, filename: String, toFile: Boolean = true)
- project
the project or directory involved
- filename
the name of the file to be written
- toFile
flag indicating whether to write to a file
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def append(arg0: Char): Writer
- Definition Classes
- Writer → Appendable
- Annotations
- @throws(classOf[java.io.IOException])
- def append(arg0: CharSequence, arg1: Int, arg2: Int): Writer
- Definition Classes
- Writer → Appendable
- Annotations
- @throws(classOf[java.io.IOException])
- def append(arg0: CharSequence): Writer
- Definition Classes
- Writer → Appendable
- Annotations
- @throws(classOf[java.io.IOException])
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def close(): Unit
Close the file (not applicable to standard output).
Close the file (not applicable to standard output).
- Definition Classes
- EasyWriter → Writer → Closeable → AutoCloseable
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def flush(): Unit
Flush (force write) the output to the file.
Flush (force write) the output to the file.
- Definition Classes
- EasyWriter → Writer → Flushable
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def print(s: String): Unit
Print/write the string 's'.
Print/write the string 's'.
- s
the string to printed/written
- def println(): Unit
Print/write a newline ('\n').
- def println(s: String): Unit
Print/write the string 's' and add a newline ('\n') at the end.
Print/write the string 's' and add a newline ('\n') at the end.
- s
the string to printed/written
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def toggle(): Unit
Toggle between writing to a file and standard output.
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def write(cbuf: Array[Char], off: Int, len: Int): Unit
Write the character buffer.
Write the character buffer.
- cbuf
the character buffer
- off
the offset in 'cbuf' to starting writing
- len
the length/number of characters to write
- Definition Classes
- EasyWriter → Writer
- def write(arg0: String, arg1: Int, arg2: Int): Unit
- Definition Classes
- Writer
- Annotations
- @throws(classOf[java.io.IOException])
- def write(arg0: String): Unit
- Definition Classes
- Writer
- Annotations
- @throws(classOf[java.io.IOException])
- def write(arg0: Array[Char]): Unit
- Definition Classes
- Writer
- Annotations
- @throws(classOf[java.io.IOException])
- def write(arg0: Int): Unit
- Definition Classes
- Writer
- Annotations
- @throws(classOf[java.io.IOException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated