EasyWriter
The EasyWriter
class makes it easy to switch between writing to standard output and a (log) file.
Value parameters
- filename
-
the name of the file to be written
- project
-
the project or directory involved
- toFile
-
flag indicating whether to write to a file
Attributes
- Graph
-
- Supertypes
-
class Writertrait Flushabletrait Closeabletrait AutoCloseabletrait Appendableclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Close the file (not applicable to standard output).
Close the file (not applicable to standard output).
Attributes
Finish by calling flush and close.
Finish by calling flush and close.
Attributes
Flush (force write) the output to the file.
Flush (force write) the output to the file.
Attributes
Print/write the string s.
Print/write the string s.
Value parameters
- s
-
the string to printed/written
Attributes
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.
Value parameters
- s
-
the string to printed/written
Attributes
Print/write a newline ('\n').
Print/write a newline ('\n').
Attributes
Toggle between writing to a file and standard output.
Toggle between writing to a file and standard output.
Attributes
Write the character buffer.
Write the character buffer.
Value parameters
- cbuf
-
the character buffer
- len
-
the length/number of characters to write
- off
-
the offset in 'cbuf' to starting writing
Attributes
Inherited methods
Attributes
- Inherited from:
- Writer
Attributes
- Inherited from:
- Writer
Attributes
- Inherited from:
- Writer
Attributes
- Inherited from:
- Writer
Attributes
- Inherited from:
- Writer
Attributes
- Inherited from:
- Writer
Attributes
- Inherited from:
- Writer