class TextOutput
Class TextOutput
provides methods for writing text data to a CanWrite
object. Output operations are buffered for performance a CanWrite
object often writes to files or other high-latency devices.
Modifiers | Return Types | Method and Description |
---|---|---|
public |
() |
create(CanWrite writer) |
public |
() |
create(CanWrite writer, int size) |
Modifiers | Return Types | Method and Description |
---|---|---|
public |
() |
destroy() Closes the |
Modifiers | Return Types | Method and Description |
---|---|---|
public |
() |
close() Close underlying writer, if possible. |
public readonly |
(TextOutput) |
copy(AddressMap addresses) |
public |
(TextOutput) |
flush() |
public |
(TextOutput) |
write(nullable Object value) Writes an object's |
public |
(TextOutput) |
write(String value) Writes a |
public |
(TextOutput) |
writeLine() Writes new line characters with the underlying writer. |
public |
(TextOutput) |
writeLine(String value) |
Modifiers | Return Types | Method and Description |
---|---|---|
public readonly get |
(String) |
lineSeparator() |
public create(CanWrite writer) => ()
public destroy() => ()
Closes the TextOutput
on destroy and flushes buffers.
public close() => ()
Close underlying writer, if possible.
public readonly copy(AddressMap addresses) => (TextOutput)
public flush() => (TextOutput)
public write(nullable Object value) => (TextOutput)
Writes an object's String
representation, using the underlying writer.
value
- object to write
TextOutput
object
public write(String value) => (TextOutput)
Writes a String
value with the underlying writer. This operation is buffered for performance. Output might not occur until a flush()
call.
value
- String
to write
Console
object
public writeLine() => (TextOutput)
Writes new line characters with the underlying writer. Note that this output is platform dependent.
TextOutput
object
public writeLine(String value) => (TextOutput)
public readonly get lineSeparator() => (String)