Class VespaXMLDocumentReader

    • Constructor Detail

      • VespaXMLDocumentReader

        public VespaXMLDocumentReader​(java.lang.String fileName,
                                      DocumentTypeManager docTypeManager)
                               throws java.lang.Exception
        Creates a reader that reads from the given file.
        Throws:
        java.lang.Exception
      • VespaXMLDocumentReader

        public VespaXMLDocumentReader​(java.io.InputStream stream,
                                      DocumentTypeManager docTypeManager)
                               throws java.lang.Exception
        Creates a reader that reads from the given stream.
        Throws:
        java.lang.Exception
      • VespaXMLDocumentReader

        public VespaXMLDocumentReader​(javax.xml.stream.XMLStreamReader reader,
                                      DocumentTypeManager docTypeManager)
        Creates a reader that reads using the given reader. This is useful if the document is part of a greater XML stream.
    • Method Detail

      • read

        public void read​(Document document)
        Reads one document from the stream. Function assumes that the current element in the stream is the start tag for the document.
        Specified by:
        read in interface DocumentReader
        Parameters:
        document - the document to be read