Class SimpleXMLWriter
java.lang.Object
com.inductiveautomation.ignition.common.xmlserialization.simple.SimpleXMLWriter
- Direct Known Subclasses:
- ClientTagExporter,- HistoricalDataXmlWriter
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
SimpleXMLWriterpublic SimpleXMLWriter()
 
- 
- 
Method Details- 
initialize- Throws:
- IOException
 
- 
initialize
- 
getLocale
- 
setLocale
- 
closeFlushes and finishes writing.- Throws:
- IOException
 
- 
writeLine- Throws:
- IOException
 
- 
writeIndent- Throws:
- IOException
 
- 
startElementWrites a staring element, with optional attributes. Attributes are an array, with a[x]=name,a[x+1]=value.- Throws:
- IOException
 
- 
startElementpublic void startElement(String name, boolean oneLine, boolean noValue, String... attributes) throws IOException - Throws:
- IOException
 
- 
startElementpublic void startElement(String name, boolean oneLine, boolean noValue, List<String> attributes) throws IOException - Throws:
- IOException
 
- 
endElement- Throws:
- IOException
 
- 
writeElementWrites start and ending together on one line.- Throws:
- IOException
 
- 
encodeValueConverts enum values to their integer equivalents, and also produces XML-sanitized strings for values
 
-