LibreOffice Module xmerge (master)
1
|
An implementation of. More...
Public Member Functions | |
DOMDocument (String name, String ext) | |
Default constructor. More... | |
Document | getContentDOM () |
Return a DOM. More... | |
void | setContentDOM (Node newDom) |
Sets the Content of the. More... | |
String | getName () |
Return the name of the. More... | |
String | getFileName () |
Return the file name of the. More... | |
void | read (InputStream is) throws IOException |
Read the Office. More... | |
void | write (OutputStream os) throws IOException |
Write out content to the supplied. More... | |
Private Member Functions | |
String | getFileExtension () |
Returns the file extension of the. More... | |
DOMDocument (String name, String ext, boolean namespaceAware, boolean validating) | |
Constructor with arguments to set. More... | |
String | trimDocumentName (String name) |
Removes the file extension from the. More... | |
byte[] | docToBytes (Document doc) throws IOException |
Write out a. More... | |
Private Attributes | |
Document | contentDoc = null |
DOM. More... | |
String | documentName = null |
String | fileName = null |
String | fileExt = null |
Static Private Attributes | |
static DocumentBuilderFactory | factory |
Factory for. More... | |
|
inline |
|
inlineprivate |
Constructor with arguments to set.
and
flags.
name |
Definition at line 86 of file DOMDocument.java.
References org.openoffice.xmerge.converter.dom.DOMDocument.getFileExtension(), and org.openoffice.xmerge.converter.dom.DOMDocument.trimDocumentName().
|
inlineprivate |
Write out a.
object into a
array.
TODO: remove dependency on
package!
doc | DOM object. |
IOException | If any I/O error occurs. |
Definition at line 209 of file DOMDocument.java.
References Class, con, Exception, java, Object, result, String, and System.
Referenced by org.openoffice.xmerge.converter.dom.DOMDocument.write().
|
inline |
Return a DOM.
object of the document content file.
Note that a content DOM is not created when the constructor is called. So, either the
method or the
method will need to be called ahead on this object before calling this method.
Definition at line 127 of file DOMDocument.java.
References org.openoffice.xmerge.converter.dom.DOMDocument.contentDoc, and Document.
Referenced by org.openoffice.xmerge.converter.xml.xslt.DocumentDeserializerImpl.deserialize().
|
inlineprivate |
Returns the file extension of the.
represented.
Definition at line 72 of file DOMDocument.java.
References org.openoffice.xmerge.converter.dom.DOMDocument.fileExt, and String.
Referenced by org.openoffice.xmerge.converter.dom.DOMDocument.DOMDocument(), and org.openoffice.xmerge.converter.dom.DOMDocument.trimDocumentName().
|
inline |
Return the file name of the.
, possibly with the standard extension.
Implements org.openoffice.xmerge.Document.
Definition at line 158 of file DOMDocument.java.
References org.openoffice.xmerge.converter.dom.DOMDocument.fileName, and String.
|
inline |
Return the name of the.
.
Implements org.openoffice.xmerge.Document.
Definition at line 147 of file DOMDocument.java.
References org.openoffice.xmerge.converter.dom.DOMDocument.documentName, and String.
|
inline |
Read the Office.
from the specified
.
is | Office document InputStream
|
IOException | If any I/O error occurs. |
Implements org.openoffice.xmerge.Document.
Definition at line 170 of file DOMDocument.java.
References ex, org.openoffice.xmerge.util.Debug.INFO, org.openoffice.xmerge.util.Debug.log(), and System.
Referenced by org.openoffice.xmerge.converter.xml.xslt.PluginFactoryImpl.createDeviceDocument().
|
inlineprivate |
Removes the file extension from the.
name.
name | Full name with extension. |
Definition at line 103 of file DOMDocument.java.
References org.openoffice.xmerge.converter.dom.DOMDocument.getFileExtension(), and String.
Referenced by org.openoffice.xmerge.converter.dom.DOMDocument.DOMDocument().
|
inline |
Write out content to the supplied.
.
os | XML OutputStream
|
IOException | If any I/O error occurs. |
Implements org.openoffice.xmerge.Document.
Definition at line 189 of file DOMDocument.java.
References org.openoffice.xmerge.converter.dom.DOMDocument.docToBytes().
|
private |
DOM.
of content.xml.
Definition at line 51 of file DOMDocument.java.
Referenced by org.openoffice.xmerge.converter.dom.DOMDocument.getContentDOM().
|
private |
Definition at line 53 of file DOMDocument.java.
Referenced by org.openoffice.xmerge.converter.dom.DOMDocument.getName().
|
staticprivate |
Factory for.
objects.
Definition at line 47 of file DOMDocument.java.
|
private |
Definition at line 55 of file DOMDocument.java.
Referenced by org.openoffice.xmerge.converter.dom.DOMDocument.getFileExtension().
|
private |
Definition at line 54 of file DOMDocument.java.
Referenced by org.openoffice.xmerge.converter.dom.DOMDocument.getFileName().