Package org.docx4j.org.apache.poi.util
Class GenericRecordJsonWriter
java.lang.Object
org.docx4j.org.apache.poi.util.GenericRecordJsonWriter
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.docx4j.org.apache.poi.util.GenericRecordJsonWriter.AppendableWriterprotected intprotected final PrintWriterprotected intprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionGenericRecordJsonWriter(File fileName) GenericRecordJsonWriter(Appendable buffer) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static Stringmarshal(GenericRecord record) static Stringmarshal(GenericRecord record, boolean withComments) protected static booleanmatchInstanceOrArray(Class<?> key, Object instance) protected booleanprintAffineTransform(String name, Object o) protected booleanprintAnnotatedFlag(String name, Object o) protected booleanprintArray(String name, Object o) protected booleanprintBoolean(String name, Object o) protected booleanprintBytes(String name, Object o) protected booleanprintColor(String name, Object o) protected booleanprintDimension(String name, Object o) protected booleanprintGenericRecord(String name, Object o) protected booleanprintImage(String name, Object o) protected booleanprotected voidprotected 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()voidwrite(GenericRecord record) protected booleanwriteChildren(GenericRecord record, boolean hasProperties) voidwriteError(String errorMsg) protected booleanprotected booleanwriteProperties(GenericRecord record) protected booleanwriteValue(String name, Object o)
-
Field Details
-
aw
protected final org.docx4j.org.apache.poi.util.GenericRecordJsonWriter.AppendableWriter aw -
fw
-
indent
protected int indent -
withComments
protected boolean withComments -
childIndex
protected int childIndex
-
-
Constructor Details
-
GenericRecordJsonWriter
- Throws:
IOException
-
GenericRecordJsonWriter
-
-
Method Details
-
marshal
-
marshal
-
setWithComments
public void setWithComments(boolean withComments) -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
tabs
-
write
-
writeProperties
-
writeChildren
-
writeError
-
writeProp
-
writeValue
-
matchInstanceOrArray
-
printName
-
printNull
-
printNumber
-
printBoolean
-
printList
-
printGenericRecord
-
printAnnotatedFlag
-
printBytes
-
printPoint
-
printDimension
-
printRectangle
-
printPath
-
printObject
-
printAffineTransform
-
printColor
-
printArray
-
printImage
-