public class PipelineDoc extends java.lang.Object implements PipelineConstants
COMPSTREAMRESULT, COMPSTREAMSOURCE, DOCFRAG, DOCUMENT, DOMRESULT, DOMSOURCE, ELEMENT, PROCESS_WAITING, SAXRESULT, SAXSOURCE, STREAMRESULT, STREAMSOURCE
Constructor and Description |
---|
PipelineDoc(InputSource in, boolean validate)
Create a pipeline doc.
|
PipelineDoc(java.io.InputStream in, boolean validate)
Create a pipeline doc.
|
PipelineDoc(java.io.Reader r, boolean validate)
Create a pipeline doc.
|
PipelineDoc(java.lang.String in, boolean validate)
Create a pipeline doc.
|
Modifier and Type | Method and Description |
---|---|
XMLDocument |
getDocument()
Get the encapsulated document object
|
public PipelineDoc(InputSource in, boolean validate) throws XMLParseException, SAXException, java.io.IOException, XSDException, java.lang.Exception
in
- - xml pipeline doc as InputSourcevalidate
- - validate against schemaXMLParseException
- thrown for any parsing errorSAXException
- thrown if any SAX errorjava.io.IOException
- thrown if error reading input streamXSDException
- thrown if error during schema validationjava.lang.Exception
- thrown if error building XMLSchema objectpublic PipelineDoc(java.io.InputStream in, boolean validate) throws XMLParseException, SAXException, java.io.IOException, XSDException, java.lang.Exception
in
- - xml pipeline doc as InputStreamvalidate
- - validate against schema or notXMLParseException
- thrown for any parsing errorSAXException
- thrown if any SAX errorjava.io.IOException
- thrown if error reading input streamXSDException
- thrown if error during schema validationjava.lang.Exception
- thrown if error building XMLSchema objectpublic PipelineDoc(java.io.Reader r, boolean validate) throws XMLParseException, SAXException, java.io.IOException, XSDException, java.lang.Exception
r
- - xml pipeline doc as Readervalidate
- - validate against schema or notXMLParseException
- thrown for any parsing errorSAXException
- thrown if any SAX errorjava.io.IOException
- thrown if error reading input streamXSDException
- thrown if error during schema validationjava.lang.Exception
- thrown if error building XMLSchema objectpublic PipelineDoc(java.lang.String in, boolean validate) throws XMLParseException, SAXException, java.io.IOException, XSDException, java.lang.Exception
in
- - xml pipeline doc as a Stringvalidate
- - validate against schema or notXMLParseException
- thrown for any parsing errorSAXException
- thrown if any SAX errorjava.io.IOException
- thrown if error reading input stringXSDException
- thrown if error during schema validationjava.lang.Exception
- thrown if error building XMLSchema objectpublic XMLDocument getDocument()