Class XTAWriter

  • All Implemented Interfaces:
    Visitor

    public class XTAWriter
    extends AbstractVisitor
    A class that facilitates writing .xta from a Document.

    Implemented via the visitor pattern.

    • Field Detail

      • names

        protected java.util.Map<Element,​java.lang.String> names
      • writer

        protected java.io.Writer writer
      • level

        protected int level
      • featuresSMC

        protected boolean featuresSMC
    • Constructor Detail

      • XTAWriter

        public XTAWriter​(java.io.OutputStream stream)
    • Method Detail

      • createUGIWriter

        public UGIWriter createUGIWriter​(java.io.OutputStream stream)
        Create and return a new UGI writer.
      • isEmpty

        protected boolean isEmpty​(java.lang.String str)
      • hasFlag

        protected boolean hasFlag​(Element element,
                                  java.lang.String property)
      • writeNonEmptyProperty

        protected boolean writeNonEmptyProperty​(Element element,
                                                java.lang.String name,
                                                java.lang.String format)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • writeNonEmptyProperty

        protected void writeNonEmptyProperty​(Element element,
                                             java.lang.String name)
                                      throws java.io.IOException
        Throws:
        java.io.IOException