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. def append(arg0: Char): Writer
    Definition Classes
    Writer → Appendable
    Annotations
    @throws( classOf[java.io.IOException] )
  2. def append(arg0: CharSequence, arg1: Int, arg2: Int): Writer
    Definition Classes
    Writer → Appendable
    Annotations
    @throws( classOf[java.io.IOException] )
  3. def append(arg0: CharSequence): Writer
    Definition Classes
    Writer → Appendable
    Annotations
    @throws( classOf[java.io.IOException] )
  4. 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
  5. def flush(): Unit

    Flush (force write) the output to the file.

    Flush (force write) the output to the file.

    Definition Classes
    EasyWriter → Writer → Flushable
  6. def print(s: String): Unit

    Print/write the string 's'.

    Print/write the string 's'.

    s

    the string to printed/written

  7. def println(): Unit

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

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

  9. def toggle(): Unit

    Toggle between writing to a file and standard output.

  10. 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
  11. def write(arg0: String, arg1: Int, arg2: Int): Unit
    Definition Classes
    Writer
    Annotations
    @throws( classOf[java.io.IOException] )
  12. def write(arg0: String): Unit
    Definition Classes
    Writer
    Annotations
    @throws( classOf[java.io.IOException] )
  13. def write(arg0: Array[Char]): Unit
    Definition Classes
    Writer
    Annotations
    @throws( classOf[java.io.IOException] )
  14. def write(arg0: Int): Unit
    Definition Classes
    Writer
    Annotations
    @throws( classOf[java.io.IOException] )