Class XMLJoiner

    • Method Detail

      • writeAll

        public void writeAll​(Iterable<ObjectData> datas)
        Writes all of the ObjectDatas to the xml output writer.
        Parameters:
        datas - collection of ObjectDatas to be written, may be null
      • write

        public void write​(ObjectData data)
        Writes the given ObjectData to the xml output writer.
        Parameters:
        data - an individual ObjectData to write, may be null
      • write

        public void write​(InputStream in)
        Writes the given InputStream to the xml output writer.
        Parameters:
        in - an InputStream to write, may be null
      • flush

        public void flush()
        Specified by:
        flush in interface Flushable
      • startDocument

        protected void startDocument()
                              throws XMLStreamException
        Called before any events are written to the writer. Subclasses may override this to add additional prologue events to the writer.

        Base class writes a start-document event.

        Throws:
        XMLStreamException
      • endDocument

        protected void endDocument()
                            throws XMLStreamException
        Called after all object events have been written to the writer. Subclasses may override this to add additional epilogue events to the writer.

        Base class does nothing.

        Throws:
        XMLStreamException
      • findObjectStart

        protected XMLEvent findObjectStart()
                                    throws XMLStreamException
        Finds the first event for the start of the next input object from the current reader.

        Default implementation returns the first start-element event.

        Returns:
        the first event for the next object, or null if there is no object in the reader
        Throws:
        XMLStreamException
      • closeImpl

        protected void closeImpl()
        Description copied from class: XMLEventUtilBase
        Does the actual close work for this instance, will only be called once.
        Specified by:
        closeImpl in class XMLEventUtilBase