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
xml
- pipeline doc as InputSourceboolean
- 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
xml
- pipeline doc as InputStreamboolean
- 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
xml
- pipeline doc as Readerboolean
- 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
xml
- pipeline doc as a Stringboolean
- 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()