Package org.docx4j.org.apache.poi.util
Class GenericRecordXmlWriter
java.lang.Object
org.docx4j.org.apache.poi.util.GenericRecordXmlWriter
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interface -
Constructor Summary
ConstructorsConstructorDescriptionGenericRecordXmlWriter(File fileName) GenericRecordXmlWriter(Appendable buffer) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidprotected static booleanstatic Stringmarshal(GenericRecord record) static Stringmarshal(GenericRecord record, boolean withComments) protected static booleanmatchInstanceOrArray(Class<?> key, Object instance) protected voidprotected booleanprintAffineTransform(String name, Object o) protected booleanprintAnnotatedFlag(String name, Object o) protected booleanprintArray(String name, Object o) protected booleanprintBoolean(String name, Object o) protected booleanprintBufferedImage(String name, Object o) protected booleanprintBytes(String name, Object o) protected booleanprintColor(String name, Object o) protected booleanprintDimension(String name, Object o) protected voidprintGenericRecord(String name, Object value) protected booleanprotected booleanprintNumber(String name, Object o) protected booleanprintObject(String name, Object o) protected booleanprotected booleanprintPoint(String name, Object o) protected booleanprintRectangle(String name, Object o) voidsetWithComments(boolean withComments) protected Stringtabs()protected StringtrimHex(long l, int size) protected voidwrite(String name, GenericRecord record) voidwrite(GenericRecord record) protected booleanwriteChildren(GenericRecord record, boolean hasComplexProperties) voidwriteError(String errorMsg) protected booleanwriteProperties(GenericRecord record) protected voidwriteValue(String name, Object value)
-
Constructor Details
-
GenericRecordXmlWriter
- Throws:
IOException
-
GenericRecordXmlWriter
-
-
Method Details
-
marshal
-
marshal
-
setWithComments
public void setWithComments(boolean withComments) -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
tabs
-
write
-
write
-
writeProperties
-
writeChildren
-
writeError
-
writeProp
-
isComplex
-
writeValue
-
matchInstanceOrArray
-
openName
-
closeName
-
printNumber
-
printBoolean
-
printList
-
printArray
-
printGenericRecord
-
printAnnotatedFlag
-
printBytes
-
printPoint
-
printDimension
-
printRectangle
-
printPath
-
printObject
-
printAffineTransform
-
printColor
-
printBufferedImage
-
trimHex
-