Class SimpleXMLWriter
java.lang.Object
com.inductiveautomation.ignition.common.xmlserialization.simple.SimpleXMLWriter
- Direct Known Subclasses:
ClientTagExporter,HistoricalDataXmlWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Flushes and finishes writing.encodeValue(Object val) Converts enum values to their integer equivalents, and also produces XML-sanitized strings for valuesvoidvoidinitialize(Writer writer) voidinitialize(String file) voidvoidstartElement(String name, boolean oneLine, boolean noValue, String... attributes) voidstartElement(String name, boolean oneLine, boolean noValue, List<String> attributes) voidstartElement(String name, String... attributes) Writes a staring element, with optional attributes.voidwriteElement(String name, List<String> attributes, String value) Writes start and ending together on one line.protected voidwriteIndent(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
-