Packages

c

scalation.util

EasyWriter

class EasyWriter extends Writer

The EasyWriter class makes it easy to switch between writing to standard output and a (log) file.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EasyWriter
  2. Writer
  3. Flushable
  4. Closeable
  5. AutoCloseable
  6. Appendable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def append(arg0: Char): Writer
    Definition Classes
    Writer → Appendable
    Annotations
    @throws(classOf[java.io.IOException])
  5. def append(arg0: CharSequence, arg1: Int, arg2: Int): Writer
    Definition Classes
    Writer → Appendable
    Annotations
    @throws(classOf[java.io.IOException])
  6. def append(arg0: CharSequence): Writer
    Definition Classes
    Writer → Appendable
    Annotations
    @throws(classOf[java.io.IOException])
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  9. 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
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def flush(): Unit

    Flush (force write) the output to the file.

    Flush (force write) the output to the file.

    Definition Classes
    EasyWriter → Writer → Flushable
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. def print(s: String): Unit

    Print/write the string 's'.

    Print/write the string 's'.

    s

    the string to printed/written

  20. def println(): Unit

    Print/write a newline ('\n').

  21. 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

  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. def toggle(): Unit

    Toggle between writing to a file and standard output.

  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. 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
  29. def write(arg0: String, arg1: Int, arg2: Int): Unit
    Definition Classes
    Writer
    Annotations
    @throws(classOf[java.io.IOException])
  30. def write(arg0: String): Unit
    Definition Classes
    Writer
    Annotations
    @throws(classOf[java.io.IOException])
  31. def write(arg0: Array[Char]): Unit
    Definition Classes
    Writer
    Annotations
    @throws(classOf[java.io.IOException])
  32. def write(arg0: Int): Unit
    Definition Classes
    Writer
    Annotations
    @throws(classOf[java.io.IOException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Writer

Inherited from Flushable

Inherited from Closeable

Inherited from AutoCloseable

Inherited from Appendable

Inherited from AnyRef

Inherited from Any

Ungrouped