Class SimpleXMLWriter
java.lang.Object
com.inductiveautomation.ignition.common.xmlserialization.simple.SimpleXMLWriter
- Direct Known Subclasses:
ClientTagExporter
,HistoricalDataXmlWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Flushes and finishes writing.encodeValue
(Object val) Converts enum values to their integer equivalents, and also produces XML-sanitized strings for valuesvoid
void
initialize
(Writer writer) void
initialize
(String file) void
void
startElement
(String name, boolean oneLine, boolean noValue, String... attributes) void
startElement
(String name, boolean oneLine, boolean noValue, List<String> attributes) void
startElement
(String name, String... attributes) Writes a staring element, with optional attributes.void
writeElement
(String name, List<String> attributes, String value) Writes start and ending together on one line.protected void
writeIndent
(boolean isEnding) protected void
-
Constructor Details
-
SimpleXMLWriter
public SimpleXMLWriter()
-
-
Method Details
-
initialize
- Throws:
IOException
-
initialize
-
getLocale
-
setLocale
-
close
Flushes and finishes writing.- Throws:
IOException
-
writeLine
- Throws:
IOException
-
writeIndent
- Throws:
IOException
-
startElement
Writes a staring element, with optional attributes. Attributes are an array, with a[x]=name,a[x+1]=value.- Throws:
IOException
-
startElement
public void startElement(String name, boolean oneLine, boolean noValue, String... attributes) throws IOException - Throws:
IOException
-
startElement
public void startElement(String name, boolean oneLine, boolean noValue, List<String> attributes) throws IOException - Throws:
IOException
-
endElement
- Throws:
IOException
-
writeElement
Writes start and ending together on one line.- Throws:
IOException
-
encodeValue
Converts enum values to their integer equivalents, and also produces XML-sanitized strings for values
-