|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.framework.xml.XMLFragment org.deegree.framework.xml.XSLTDocument
public class XSLTDocument
Encapsulates the DOM representation of an XSLT stylesheet.
Field Summary |
---|
Fields inherited from class org.deegree.framework.xml.XMLFragment |
---|
DEFAULT_URL, nsContext, XLNNS |
Constructor Summary | |
---|---|
XSLTDocument()
An empty xslt document. |
|
XSLTDocument(java.net.URL url)
|
Method Summary | |
---|---|
void |
transform(java.io.InputStream input,
java.io.OutputStream target)
Transforms an input XML stream to an output stream using this XSLTDocument . |
XMLFragment |
transform(java.io.InputStream instream,
java.lang.String systemId,
java.util.Properties outputProperties,
java.util.Map<java.lang.String,?> params)
Transforms the XML from the given InputStream . |
XMLFragment |
transform(java.io.Reader reader,
java.lang.String systemId,
java.util.Properties outputProperties,
java.util.Map<java.lang.String,?> params)
Transforms the XML from the given Reader . |
static javax.xml.transform.Result |
transform(javax.xml.transform.Source xmlSource,
javax.xml.transform.Source xslSource,
javax.xml.transform.Result result,
java.util.Properties outputProperties,
java.util.Map<java.lang.String,?> params)
Transforms the given XML Source instance using the also submitted XSLT stylesheet
Source . |
XMLFragment |
transform(XMLFragment xmlDocument)
Transforms the given XMLFragment instance. |
void |
transform(XMLFragment xmlDocument,
java.io.OutputStream target)
Transforms the given XMLFragment instance. |
XMLFragment |
transform(XMLFragment xmlDocument,
java.lang.String systemId,
java.util.Properties outputProperties,
java.util.Map<java.lang.String,?> params)
Transforms the given XMLFragment instance. |
Methods inherited from class org.deegree.framework.xml.XMLFragment |
---|
getAsPrettyString, getAsString, getAttachedSchemas, getQualifiedName, getRootElement, getSystemId, hasSchema, load, load, load, parseQualifiedName, parseSimpleLink, prettyPrint, prettyPrint, resolve, setRootElement, setSystemId, setSystemId, toString, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XSLTDocument()
public XSLTDocument(java.net.URL url) throws java.io.IOException, org.xml.sax.SAXException
url
-
java.io.IOException
org.xml.sax.SAXException
Method Detail |
---|
public XMLFragment transform(XMLFragment xmlDocument, java.lang.String systemId, java.util.Properties outputProperties, java.util.Map<java.lang.String,?> params) throws javax.xml.transform.TransformerException, java.net.MalformedURLException
XMLFragment
instance.
xmlDocument
- can not be nullsystemId
- SystemID for the resulting XMLFragment
, may be nulloutputProperties
- transformation properties, may be nullparams
- transformation parameters, may be null
javax.xml.transform.TransformerException
java.net.MalformedURLException
- if systemId is no valid URL
public XMLFragment transform(XMLFragment xmlDocument) throws javax.xml.transform.TransformerException
XMLFragment
instance.
xmlDocument
- can not be null
javax.xml.transform.TransformerException
public void transform(XMLFragment xmlDocument, java.io.OutputStream target) throws javax.xml.transform.TransformerException
XMLFragment
instance.
xmlDocument
- can not be nulltarget
- output stream where the result of the transformation will be written to
javax.xml.transform.TransformerException
public void transform(java.io.InputStream input, java.io.OutputStream target) throws javax.xml.transform.TransformerException
XSLTDocument
.
input
- provides the input xml as a streamtarget
- output stream where the result of the transformation will be written to
javax.xml.transform.TransformerException
public XMLFragment transform(java.io.InputStream instream, java.lang.String systemId, java.util.Properties outputProperties, java.util.Map<java.lang.String,?> params) throws javax.xml.transform.TransformerException, java.net.MalformedURLException
InputStream
.
NOTE: You have to make sure that the InputStream
provides a valid XML document.
instream
- systemId
- SystemID for the resulting XMLFragment
outputProperties
- transformation properties, may be nullparams
- transformation parameters, may be null
javax.xml.transform.TransformerException
- if transformation fails
java.net.MalformedURLException
- if given systemId is no valid URL
public XMLFragment transform(java.io.Reader reader, java.lang.String systemId, java.util.Properties outputProperties, java.util.Map<java.lang.String,?> params) throws javax.xml.transform.TransformerException, java.net.MalformedURLException
Reader
.
NOTE: You have to make sure that the Reader
provides a valid XML document.
reader
- systemId
- SystemID for the resulting XMLFragment
outputProperties
- transformation properties, may be nullparams
- transformation parameters, may be null
javax.xml.transform.TransformerException
- if transformation fails
java.net.MalformedURLException
- if given systemId is no valid URL
public static javax.xml.transform.Result transform(javax.xml.transform.Source xmlSource, javax.xml.transform.Source xslSource, javax.xml.transform.Result result, java.util.Properties outputProperties, java.util.Map<java.lang.String,?> params) throws javax.xml.transform.TransformerException
Source
instance using the also submitted XSLT stylesheet
Source
.
xmlSource
- xslSource
- result
- outputProperties
- may be nullparams
- may be null
javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org