Package com.nfbsoftware.xml
Class XslDocument
java.lang.Object
com.nfbsoftware.xml.XslDocument
- All Implemented Interfaces:
IXslDocument,Serializable
- Author:
- Brendan Clemenzi
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionXslDocument(File file) XslDocument(File file, String enc) XslDocument(InputStream in, String enc) XslDocument(Reader reader) XslDocument(String xml) -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method replaces the content of the current root node with that of the input file.voidThis method replaces the content of the current root node with that of the input file.voidload(InputStream in) This method replaces the content of the current root node with that of the InputStream.voidload(InputStream in, String enc) This method replaces the content of the current root node with that of the InputStream.voidThis method replaces the content of the current root node with that of the Reader.voidThis method replaces the content of the current root node with that of the input string.toString()transform(IXmlElement xmlElement) This method transforms the xml document using this style sheet.This method transforms the xml document using this style sheet.This method transforms the xml document using this style sheet.transform(InputStream stream) This method transforms the xml document using this style sheet.transform(InputStream stream, String enc) This method transforms the xml document using this style sheet.This method transforms the xml document using this style sheet.This method transforms the xml document using this style sheet.transformToXmlDocument(IXmlElement xmlElement) This method transforms the xml document using this style sheet.transformToXmlDocument(File xmlFile) This method transforms the xml document using this style sheet.transformToXmlDocument(File xmlFile, String enc) This method transforms the xml document using this style sheet.transformToXmlDocument(InputStream stream) This method transforms the xml document using this style sheet.transformToXmlDocument(InputStream stream, String enc) This method transforms the xml document using this style sheet.transformToXmlDocument(Reader reader) This method transforms the xml document using this style sheet.This method transforms the xml document using this style sheet.
-
Constructor Details
-
XslDocument
- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
XslDocument
- Parameters:
file- File of xsl- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
XslDocument
- Parameters:
file- of XSLenc- The encoding.- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
XslDocument
- Parameters:
in- inputstream with XSL.- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
XslDocument
- Parameters:
in- Inputstream with XSLenc- Encoding.- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
XslDocument
- Parameters:
reader- A reader with XSL.- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
XslDocument
- Parameters:
xml- A string containing XSL.- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
-
Method Details
-
load
This method replaces the content of the current root node with that of the input file.- Specified by:
loadin interfaceIXslDocument- Parameters:
file- points to the XML file- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
load
This method replaces the content of the current root node with that of the input file.- Specified by:
loadin interfaceIXslDocument- Parameters:
file- points to the XML fileenc- The name of the supported character encoding- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
load
This method replaces the content of the current root node with that of the InputStream.- Specified by:
loadin interfaceIXslDocument- Parameters:
in- A stream containing an XML document.- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
load
This method replaces the content of the current root node with that of the InputStream.- Specified by:
loadin interfaceIXslDocument- Parameters:
in- A stream containing an XML document.enc- The name of the supported character encoding- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
load
This method replaces the content of the current root node with that of the Reader.- Specified by:
loadin interfaceIXslDocument- Parameters:
reader- A reader containing an XML document.- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
load
This method replaces the content of the current root node with that of the input string.- Specified by:
loadin interfaceIXslDocument- Parameters:
xml- A string contains an XML document.- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
transform
This method transforms the xml document using this style sheet.- Specified by:
transformin interfaceIXslDocument- Parameters:
xmlFile- a file containing the XML document.- Returns:
- The XML document.
- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
transform
This method transforms the xml document using this style sheet.- Specified by:
transformin interfaceIXslDocument- Parameters:
xmlFile- the file containing the XML document.enc- the encoding of the file- Returns:
- The XML document.
- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
transform
This method transforms the xml document using this style sheet.- Specified by:
transformin interfaceIXslDocument- Parameters:
stream- stream containing the XML document.- Returns:
- The XML document.
- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
transform
This method transforms the xml document using this style sheet.- Specified by:
transformin interfaceIXslDocument- Parameters:
stream- stream containing the XML document.enc- the encoding of the stream- Returns:
- The XML document.
- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
transform
This method transforms the xml document using this style sheet.- Specified by:
transformin interfaceIXslDocument- Parameters:
xmlElement- a string containing the XML document- Returns:
- The XML document.
- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
transform
This method transforms the xml document using this style sheet.- Specified by:
transformin interfaceIXslDocument- Parameters:
reader- a reader containing the XML document- Returns:
- The XML document.
- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
transform
This method transforms the xml document using this style sheet.- Specified by:
transformin interfaceIXslDocument- Parameters:
xml- a string containing the XML document- Returns:
- The XML document.
- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
transformToXmlDocument
This method transforms the xml document using this style sheet.- Specified by:
transformToXmlDocumentin interfaceIXslDocument- Parameters:
xmlFile- a file containing the XML document.- Returns:
- The XML document.
- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
transformToXmlDocument
public IXmlDocument transformToXmlDocument(File xmlFile, String enc) throws XmlDocumentCheckedException This method transforms the xml document using this style sheet.- Specified by:
transformToXmlDocumentin interfaceIXslDocument- Parameters:
xmlFile- a file containing the XML document.enc- the encoding of the stream- Returns:
- The XML document.
- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
transformToXmlDocument
This method transforms the xml document using this style sheet.- Specified by:
transformToXmlDocumentin interfaceIXslDocument- Parameters:
stream- stream containing the XML document.- Returns:
- The XML document.
- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
transformToXmlDocument
public IXmlDocument transformToXmlDocument(InputStream stream, String enc) throws XmlDocumentCheckedException This method transforms the xml document using this style sheet.- Specified by:
transformToXmlDocumentin interfaceIXslDocument- Parameters:
stream- stream containing the XML document.enc- the encoding of the stream- Returns:
- The XML document.
- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
transformToXmlDocument
public IXmlDocument transformToXmlDocument(IXmlElement xmlElement) throws XmlDocumentCheckedException This method transforms the xml document using this style sheet.- Specified by:
transformToXmlDocumentin interfaceIXslDocument- Parameters:
xmlElement- the XML document- Returns:
- The XML document.
- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
transformToXmlDocument
This method transforms the xml document using this style sheet.- Specified by:
transformToXmlDocumentin interfaceIXslDocument- Parameters:
reader- a reader containing the XML document- Returns:
- The XML document.
- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
transformToXmlDocument
This method transforms the xml document using this style sheet.- Specified by:
transformToXmlDocumentin interfaceIXslDocument- Parameters:
xml- a string containing the XML document- Returns:
- The XML document.
- Throws:
XmlDocumentCheckedException- If the XML is invalid.
-
toString
-