Class SDDocumentSource

    • Constructor Detail

      • SDDocumentSource

        public SDDocumentSource()
    • Method Detail

      • read

        public abstract XMLStreamReader read​(XMLInputFactory xif)
                                      throws IOException,
                                             XMLStreamException
        Returns the XMLStreamReader that reads the document.

        This method maybe invoked multiple times concurrently.

        Parameters:
        xif - The implementation may choose to use this object when it wants to create a new parser (or it can just ignore this parameter completely.)
        Returns:
        The caller is responsible for closing the reader to avoid resource leak.
        Throws:
        XMLStreamException - if something goes wrong while creating a parser.
        IOException - if something goes wrong trying to read the document.
      • getSystemId

        public abstract URL getSystemId()
        System ID of this document.
        Returns:
      • create

        public static SDDocumentSource create​(URL systemId,
                                              com.sun.xml.stream.buffer.XMLStreamBuffer xsb)
        Creates a SDDocumentSource from XMLStreamBuffer.
        Parameters:
        systemId -
        xsb -
        Returns: