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 int
Constant to identify XHTML + MathML documentsstatic final int
Constant to identify XHTML + MathML documents using the xsl transformations from w3c's math working group (http://www.w3.org/Math/XSL/)static final int
Constant to identify XHTML 1.0 strict documentsstatic final int
Constant to identify XHTML 1.1 documents (not used currently) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
static final String
getExtension
(int nType) Returns the file extension of theDocument
represented.void
read
(InputStream is) Read the OfficeDocument
from the specifiedInputStream
.void
readFromTemplate
(XhtmlDocument template) void
setAddBOM
(boolean b) void
setContentDOM
(Document doc) void
setContentNode
(Element contentNode) void
void
setNoDoctype
(boolean b) void
setUseNamedEntities
(boolean b) void
void
write
(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
-Document
name.nType
- the type of document
-
-
Method Details
-
getExtension
-
getHeadNode
-
getBodyNode
-
getTitleNode
-
getContentNode
-
setContentNode
-
getPanelNode
-
getHeaderNode
-
setContentDOM
-
read
Description copied from class:DOMDocument
Read the OfficeDocument
from the specifiedInputStream
.- Specified by:
read
in interfaceDocument
- Overrides:
read
in 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:DOMDocument
Returns the file extension of theDocument
represented.- Overrides:
getFileExtension
in classDOMDocument
- Returns:
- file extension of the
Document
.
-
write
Write out content to the suppliedOutputStream
. (with pretty printing)- Specified by:
write
in interfaceOutputFile
- Overrides:
write
in classDOMDocument
- Parameters:
os
- XMLOutputStream
.- Throws:
IOException
- If any I/O error occurs.
-