Documentation/TextWriter
classWORKER

TextWriter

js/foo_uie_jsplitter.js:4246

Streaming text writer returned by utils.OpenTextWriter.

propertyWORKERreadonly

Closed

js/foo_uie_jsplitter.js:4292
Closed: boolean = false

Indicates whether the writer has been closed.

methodWORKER

Close

js/foo_uie_jsplitter.js:4284
Close()

Closes the file. Calling Close() more than once is allowed.

Returns

boolean —

true if the writer is closed successfully; false if closing/flushing the file fails. Calling it again after a successful close returns true.

methodWORKER

Flush

js/foo_uie_jsplitter.js:4275
Flush()

Flushes buffered output to the file.

Returns

boolean —

true on success; false if flushing fails.

Throws

Error —

If the writer is closed.

methodWORKER

Write

js/foo_uie_jsplitter.js:4255
Write(content)

Writes text at the current file position without adding a line terminator.

Parameters

NameTypeDescription
contentstring

Text to write.

Returns

boolean —

true on success; false if the text cannot be encoded in the selected codepage or the write fails.

Throws

Error —

If the writer is closed.

methodWORKER

WriteLine

js/foo_uie_jsplitter.js:4265
WriteLine(content)

Writes text followed by a CRLF line terminator.

Parameters

NameTypeDescription
contentstring

Text to write.

Returns

boolean —

true on success; false if the text cannot be encoded in the selected codepage or the write fails.

Throws

Error —

If the writer is closed.