Package xmlparser
Interface XmlWriter
- All Superinterfaces:
Interfaces.AccessSerializers,Interfaces.ParserConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringdomToXml(XmlElement node) default voiddomToXml(XmlElement node, Writer writer) default voiddomToXml(XmlElement node, Writer writer, String indent) default Stringdefault voiddefault voiddefault voiddefault voiddefault voidwriteIndent(Writer writer, String indent) default voiddefault voiddefault voidwriteNewLine(Writer writer) default voidwriteObject(Writer writer, String name, Object o, String indent) default voiddefault voidwriteSimple(Writer writer, String name, Object value, String indent) default voidwriteSimple(Writer writer, String name, Object value, List<Field> attributes, Object text, String indent) Methods inherited from interface xmlparser.utils.Interfaces.AccessSerializers
getSerializer, hasSerializerMethods inherited from interface xmlparser.utils.Interfaces.ParserConfiguration
shouldEncodeUTF8, shouldPrettyPrint
-
Method Details
-
toXml
-
toXml
- Throws:
IOException
-
domToXml
-
domToXml
- Throws:
IOException
-
domToXml
- Throws:
IOException
-
writeSimple
default void writeSimple(Writer writer, String name, Object value, String indent) throws IOException - Throws:
IOException
-
writeSimple
default void writeSimple(Writer writer, String name, Object value, List<Field> attributes, Object text, String indent) throws IOException, IllegalAccessException - Throws:
IOExceptionIllegalAccessException
-
writeList
default void writeList(Writer writer, Field field, String name, Object o, String indent) throws IllegalArgumentException, IllegalAccessException, IOException -
writeArray
default void writeArray(Writer writer, Field field, String name, Object o, String indent) throws IllegalArgumentException, IllegalAccessException, IOException -
writeSet
default void writeSet(Writer writer, Field field, String name, Object o, String indent) throws IllegalArgumentException, IllegalAccessException, IOException -
writeMap
default void writeMap(Writer writer, Field field, String name, Object o, String indent) throws IllegalArgumentException, IllegalAccessException, IOException -
writeEnum
- Throws:
IOException
-
writeObject
default void writeObject(Writer writer, String name, Object o, String indent) throws IllegalArgumentException, IllegalAccessException, IOException -
writeField
default void writeField(Class<?> c, Field field, Writer writer, String name, Object value, String indent) throws IllegalArgumentException, IllegalAccessException, IOException -
writeIndent
- Throws:
IOException
-
writeNewLine
- Throws:
IOException
-