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
- All
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
-
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] )
-
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
-
def
flush(): Unit
Flush (force write) the output to the file.
Flush (force write) the output to the file.
- Definition Classes
- EasyWriter → Writer → Flushable
-
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
-
def
toggle(): Unit
Toggle between writing to a file and standard output.
-
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] )