Class GenericRecordXmlWriter

java.lang.Object
org.docx4j.org.apache.poi.util.GenericRecordXmlWriter
All Implemented Interfaces:
Closeable, AutoCloseable

public class GenericRecordXmlWriter extends Object implements Closeable
  • Constructor Details

    • GenericRecordXmlWriter

      public GenericRecordXmlWriter(File fileName) throws IOException
      Throws:
      IOException
    • GenericRecordXmlWriter

      public GenericRecordXmlWriter(Appendable buffer)
  • Method Details

    • marshal

      public static String marshal(GenericRecord record)
    • marshal

      public static String marshal(GenericRecord record, boolean withComments)
    • setWithComments

      public void setWithComments(boolean withComments)
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • tabs

      protected String tabs()
    • write

      public void write(GenericRecord record)
    • write

      protected void write(String name, GenericRecord record)
    • writeProperties

      protected boolean writeProperties(GenericRecord record)
    • writeChildren

      protected boolean writeChildren(GenericRecord record, boolean hasComplexProperties)
    • writeError

      public void writeError(String errorMsg)
    • writeProp

      protected Stream<Map.Entry<String,Supplier<?>>> writeProp(Map.Entry<String,Supplier<?>> me)
    • isComplex

      protected static boolean isComplex(Object obj)
    • writeValue

      protected void writeValue(String name, Object value)
    • matchInstanceOrArray

      protected static boolean matchInstanceOrArray(Class<?> key, Object instance)
    • openName

      protected void openName(String name)
    • closeName

      protected void closeName(String name)
    • printNumber

      protected boolean printNumber(String name, Object o)
    • printBoolean

      protected boolean printBoolean(String name, Object o)
    • printList

      protected boolean printList(String name, Object o)
    • printArray

      protected boolean printArray(String name, Object o)
    • printGenericRecord

      protected void printGenericRecord(String name, Object value)
    • printAnnotatedFlag

      protected boolean printAnnotatedFlag(String name, Object o)
    • printBytes

      protected boolean printBytes(String name, Object o)
    • printPoint

      protected boolean printPoint(String name, Object o)
    • printDimension

      protected boolean printDimension(String name, Object o)
    • printRectangle

      protected boolean printRectangle(String name, Object o)
    • printPath

      protected boolean printPath(String name, Object o)
    • printObject

      protected boolean printObject(String name, Object o)
    • printAffineTransform

      protected boolean printAffineTransform(String name, Object o)
    • printColor

      protected boolean printColor(String name, Object o)
    • printBufferedImage

      protected boolean printBufferedImage(String name, Object o)
    • trimHex

      protected String trimHex(long l, int size)