dw.io
Class XMLIndentingStreamWriter
A XMLIndentingStreamWriter writes the XML output formatted for good
readability.
Note: when this class is used with sensitive data, be careful
in persisting sensitive information to disk.
Properties
indent
:
String
The indent.
newLine
:
String
The string that is used for a new line character. The
default is the normal new line character.
Constructor Summary
XMLIndentingStreamWriter(writer
:
Writer)
Constructs the writer for the specified writer.
Method Summary
getNewLine()
:
String
Returns the string that is used for a new line character.
setNewLine(newLine
:
String)
:
void
Sets the string that is used for a new line character.
Methods inherited from class
XMLStreamWriter
close, flush, getDefaultNamespace, getPrefix, setDefaultNamespace, setPrefix, writeAttribute, writeAttribute, writeAttribute, writeCData, writeCharacters, writeComment, writeDefaultNamespace, writeDTD, writeEmptyElement, writeEmptyElement, writeEmptyElement, writeEndDocument, writeEndElement, writeEntityRef, writeNamespace, writeProcessingInstruction, writeProcessingInstruction, writeRaw, writeStartDocument, writeStartDocument, writeStartDocument, writeStartElement, writeStartElement, writeStartElement
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
XMLIndentingStreamWriter
public XMLIndentingStreamWriter(writer
:
Writer)
Constructs the writer for the specified writer.
Parameters:
writer
-
the writer to use.
Method Detail
getNewLine
getNewLine()
:
String
Returns the string that is used for a new line character. The
default is the normal new line character.
Returns:
the new line.
setIndent
setIndent(indent
:
String)
:
void
Specifies a string that will be used as identing characters. The
default are two space characters.
Parameters:
indent
-
The indent to set.
setNewLine
setNewLine(newLine
:
String)
:
void
Sets the string that is used for a new line character.
Parameters:
newLine
-
The newLine to set.
© Copyright 2000-2024, salesforce.com inc. All rights reserved. Various trademarks held by their respective owners.