Class JRXmlDocumentProducer
- java.lang.Object
-
- net.sf.jasperreports.engine.util.xml.JRXmlDocumentProducer
-
public class JRXmlDocumentProducer extends Object
Produces aorg.w3c.dom.Document
based on ajava.io.File
,java.io.InputStream
or ajava.lang.String
uri- Author:
- Narcis Marcu (narcism@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_DOCUMENT_BUILDER_CREATION_FAILURE
-
Constructor Summary
Constructors Constructor Description JRXmlDocumentProducer()
JRXmlDocumentProducer(File file)
JRXmlDocumentProducer(InputStream inputStream)
JRXmlDocumentProducer(String uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Document
getDocument()
Document
getDocument(Node sourceNode)
protected DocumentBuilder
getDocumentBuilder()
DocumentBuilderFactory
getDocumentBuilderFactory()
void
setDocumentBuilderFactory(DocumentBuilderFactory documentBuilderFactory)
void
setFile(File file)
void
setInputStream(InputStream inputStream)
void
setUri(String uri)
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_DOCUMENT_BUILDER_CREATION_FAILURE
public static final String EXCEPTION_MESSAGE_KEY_DOCUMENT_BUILDER_CREATION_FAILURE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JRXmlDocumentProducer
public JRXmlDocumentProducer()
-
JRXmlDocumentProducer
public JRXmlDocumentProducer(File file)
-
JRXmlDocumentProducer
public JRXmlDocumentProducer(InputStream inputStream)
-
JRXmlDocumentProducer
public JRXmlDocumentProducer(String uri)
-
-
Method Detail
-
getDocumentBuilderFactory
public DocumentBuilderFactory getDocumentBuilderFactory()
-
setDocumentBuilderFactory
public void setDocumentBuilderFactory(DocumentBuilderFactory documentBuilderFactory)
-
setFile
public void setFile(File file)
-
setInputStream
public void setInputStream(InputStream inputStream)
-
setUri
public void setUri(String uri)
-
getDocument
public Document getDocument() throws JRException
- Throws:
JRException
-
getDocument
public Document getDocument(Node sourceNode) throws JRException
- Throws:
JRException
-
getDocumentBuilder
protected DocumentBuilder getDocumentBuilder() throws JRException
- Throws:
JRException
-
-