Package org.codehaus.cargo.module
Interface DescriptorIo
-
- All Known Implementing Classes:
AbstractDescriptorIo
,ApplicationXmlIo
,EjbJarXmlIo
,IbmEjbJarBndXmiIo
,IbmWebBndXmiIo
,JBossWebXmlIo
,JBossXmlIo
,OrionEjbJarXmlIo
,OrionWebXmlIo
,ResinWebXmlIo
,TomcatContextXmlIo
,WeblogicEjbJarXmlIo
,WeblogicXmlIo
,WebXmlIo
public interface DescriptorIo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.jdom2.input.SAXBuilder
createDocumentBuilder()
Create a document builder.org.jdom2.input.SAXBuilder
createDocumentBuilder(EntityResolver theEntityResolver)
org.jdom2.Document
parseXml(InputStream documentStream)
Parse XML into a document.org.jdom2.Document
parseXml(InputStream theInput, EntityResolver theEntityResolver)
-
-
-
Method Detail
-
parseXml
org.jdom2.Document parseXml(InputStream documentStream) throws org.jdom2.JDOMException, IOException
Parse XML into a document.- Parameters:
documentStream
- stream containing XML- Returns:
- the document
- Throws:
IOException
- if error readingorg.jdom2.JDOMException
- if error constructing document
-
parseXml
org.jdom2.Document parseXml(InputStream theInput, EntityResolver theEntityResolver) throws org.jdom2.JDOMException, IOException
- Parameters:
theInput
- Input XML streamtheEntityResolver
- Entity Resolver- Returns:
- the document
- Throws:
IOException
- if error readingorg.jdom2.JDOMException
- if error constructing document
-
createDocumentBuilder
org.jdom2.input.SAXBuilder createDocumentBuilder()
Create a document builder.- Returns:
- new document builder
-
createDocumentBuilder
org.jdom2.input.SAXBuilder createDocumentBuilder(EntityResolver theEntityResolver)
- Parameters:
theEntityResolver
- entity resolver or null- Returns:
- a new non-validating, non-namespace-aware
DocumentBuilder
instance
-
-