Class XMLWriterFactory

  • Direct Known Subclasses:
    XMLWriterFactoryDesktop

    public abstract class XMLWriterFactory
    extends java.lang.Object
    Factory to create XML Writers.
    • Constructor Detail

      • XMLWriterFactory

        protected XMLWriterFactory()
        Constructor.
    • Method Detail

      • getInstance

        public static XMLWriterFactory getInstance()
        Returns the instance of this factory.
        Returns:
        the factory instance
      • createWriter

        public abstract AWriter createWriter()
        Create a new reader (with genids=true and indent=true).
      • createWriter

        public abstract AWriter createWriter​(boolean genIds)
        Create an XMLWRiter
        Parameters:
        genIds - flag for generating ids.
        Returns:
        the writer
      • createWriter

        public abstract AWriter createWriter​(boolean genids,
                                             boolean indents)
        Creates a new default XML Reader.
        Parameters:
        genids -
        indents -
        Returns:
        reader
      • createWriter

        public abstract AWriter createWriter​(boolean genids,
                                             boolean indents,
                                             boolean newline)
        Creates a new default XML Reader.
        Parameters:
        genids -
        indents -
        Returns:
        reader