dw.io
Class Writer
dw.io.Writer
The class supports writing characters to a stream.
Note: when this class is used with sensitive data, be careful in persisting sensitive information to disk.
All Known Subclasses
Constructor Summary
Writer(stream
:
OutputStream)
Create a writer from a stream using UTF-8 character encoding.
Writer(stream
:
OutputStream, encoding
:
String)
Create a writer from a stream using the specified character encoding.
Methods inherited from class
Object
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
Constructor Detail
Writer
public Writer(stream
:
OutputStream)
Create a writer from a stream using UTF-8 character encoding.
Parameters:
stream
-
the output stream to use when creating the writer.
Method Detail
write
write(str
:
String)
:
void
Write the given string to the stream.
Parameters:
str
-
the string to write to the stream.
© Copyright 2000-2024, salesforce.com inc. All rights reserved. Various trademarks held by their respective owners.