writer2latex.xmerge
public class DOMDocument extends Object implements Document
Document for
StarOffice documents.
| Constructor Summary | |
|---|---|
| DOMDocument(String name, String ext)
Default constructor.
| |
| DOMDocument(String name, String ext, boolean namespaceAware, boolean validating)
Constructor with arguments to set namespaceAware
and validating flags.
| |
| Method Summary | |
|---|---|
| Document | getContentDOM()
Return a DOM Document object of the document content
file. |
| protected String | getFileExtension()
Returns the file extension of the Document
represented.
|
| String | getFileName()
Return the file name of the Document, possibly
with the standard extension.
|
| String | getName()
Return the name of the Document.
|
| void | initContentDOM()
Initializes a new DOM Document with the content
containing minimum XML tags.
|
| void | read(InputStream is)
Read the Office Document from the specified
InputStream.
|
| void | setContentDOM(Node newDom)
Sets the Content of the Document to the contents of the
supplied Node list.
|
| void | write(OutputStream os)
Write out content to the supplied OutputStream.
|
Parameters: name Document name. ext Document extension.
namespaceAware
and validating flags.
Parameters: name Document name (may or may not
contain extension). ext Document extension. namespaceAware Value for namespaceAware flag. validating Value for validating flag.
Document object of the document content
file. Note that a content DOM is not created when the constructor
is called. So, either the read method or the
initContentDOM method will need to be called ahead
on this object before calling this method.
Returns: DOM Document object.
Document
represented.
Returns: file extension of the Document.
Document, possibly
with the standard extension.
Returns: The file name of Document.
Document.
Returns: The name of Document.
Document with the content
containing minimum XML tags.
Throws: IOException If any I/O error occurs.
Document from the specified
InputStream.
Parameters: is Office document InputStream.
Throws: IOException If any I/O error occurs.
Document to the contents of the
supplied Node list.
Parameters: newDom DOM Document object.
OutputStream.
Parameters: os XML OutputStream.
Throws: IOException If any I/O error occurs.