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
Writer, Flushable, Closeable, AutoCloseable, Appendable, AnyRef, Any
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. All

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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  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: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def flush(): Unit

    Flush (force write) the output to the file.

    Flush (force write) the output to the file.

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

    Print/write the string 's'.

    Print/write the string 's'.

    s

    the string to printed/written

  21. def println(): Unit

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

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

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

    Toggle between writing to a file and standard output.

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

Inherited from Writer

Inherited from Flushable

Inherited from Closeable

Inherited from AutoCloseable

Inherited from Appendable

Inherited from AnyRef

Inherited from Any

Ungrouped