Package writer2latex.xhtml
Class XhtmlDocument
java.lang.Object
writer2latex.xmerge.DOMDocument
writer2latex.xhtml.XhtmlDocument
- All Implemented Interfaces:
OutputFile,Document
An implementation of
Document for
XHTML documents.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstant to identify XHTML + MathML documentsstatic final intConstant to identify XHTML + MathML documents using the xsl transformations from w3c's math working group (http://www.w3.org/Math/XSL/)static final intConstant to identify XHTML 1.0 strict documentsstatic final intConstant to identify XHTML 1.1 documents (not used currently) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic final StringgetExtension(int nType) Returns the file extension of theDocumentrepresented.voidread(InputStream is) Read the OfficeDocumentfrom the specifiedInputStream.voidreadFromTemplate(XhtmlDocument template) voidsetAddBOM(boolean b) voidsetContentDOM(Document doc) voidsetContentNode(Element contentNode) voidvoidsetNoDoctype(boolean b) voidsetUseNamedEntities(boolean b) voidvoidwrite(OutputStream os) Write out content to the suppliedOutputStream.Methods inherited from class writer2latex.xmerge.DOMDocument
getContentDOM, getFileName, getName, initContentDOM, setContentDOM
-
Field Details
-
XHTML10
public static final int XHTML10Constant to identify XHTML 1.0 strict documents- See Also:
-
XHTML11
public static final int XHTML11Constant to identify XHTML 1.1 documents (not used currently)- See Also:
-
XHTML_MATHML
public static final int XHTML_MATHMLConstant to identify XHTML + MathML documents- See Also:
-
XHTML_MATHML_XSL
public static final int XHTML_MATHML_XSLConstant to identify XHTML + MathML documents using the xsl transformations from w3c's math working group (http://www.w3.org/Math/XSL/)- See Also:
-
-
Constructor Details
-
XhtmlDocument
Constructor. This constructor also creates the DOM (minimal: root, head, title and body node only) - unlike the constructors in writer2latex.xmerge.DOMDocument.- Parameters:
name-Documentname.nType- the type of document
-
-
Method Details
-
getExtension
-
getHeadNode
-
getBodyNode
-
getTitleNode
-
getContentNode
-
setContentNode
-
getPanelNode
-
getHeaderNode
-
setContentDOM
-
read
Description copied from class:DOMDocumentRead the OfficeDocumentfrom the specifiedInputStream.- Specified by:
readin interfaceDocument- Overrides:
readin classDOMDocument- Parameters:
is- Office documentInputStream.- Throws:
IOException- If any I/O error occurs.
-
readFromTemplate
-
setEncoding
-
getEncoding
-
setNoDoctype
public void setNoDoctype(boolean b) -
setAddBOM
public void setAddBOM(boolean b) -
setUseNamedEntities
public void setUseNamedEntities(boolean b) -
setXsltPath
-
getFileExtension
Description copied from class:DOMDocumentReturns the file extension of theDocumentrepresented.- Overrides:
getFileExtensionin classDOMDocument- Returns:
- file extension of the
Document.
-
write
Write out content to the suppliedOutputStream. (with pretty printing)- Specified by:
writein interfaceOutputFile- Overrides:
writein classDOMDocument- Parameters:
os- XMLOutputStream.- Throws:
IOException- If any I/O error occurs.
-