com.xmlserv.app.shared
Class SODocument

java.lang.Object
  |
  +--com.xmlserv.app.shared.SODocument

public class SODocument
extends java.lang.Object

This class is a read-only encapsulation of a StarOffice 6 Document. It decodes the contents and prepares InputStreams to read data.


Constructor Summary
SODocument(java.lang.String filename)
           
 
Method Summary
 java.io.InputStream getContent()
           
 java.io.InputStream getEntry(java.lang.String name)
          Read any part of the archive.
 java.io.File getFile()
          Return a File object for the ZIP (SOffice) file.
 long getLength()
          Return length of file.
 java.io.InputStream getMeta()
           
 java.util.Enumeration getPicturesList()
           
 java.io.InputStream getSettings()
           
 java.io.InputStream getStyles()
           
 void read(java.lang.String filename)
           
 org.jdom.Document toXHTML(javax.xml.transform.Source stylesheet)
          NOTE: The systemid MUST be set for the stylesheet, as the OpenOffice DTD is referenced (as well as several .mod files).
 org.jdom.Document toXHTML(java.lang.String stylesheet)
          Convert to XHTML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SODocument

public SODocument(java.lang.String filename)
           throws java.io.IOException
Method Detail

read

public void read(java.lang.String filename)
          throws java.io.IOException

getContent

public java.io.InputStream getContent()
                               throws java.io.IOException

getMeta

public java.io.InputStream getMeta()
                            throws java.io.IOException

getSettings

public java.io.InputStream getSettings()
                                throws java.io.IOException

getStyles

public java.io.InputStream getStyles()
                              throws java.io.IOException

getPicturesList

public java.util.Enumeration getPicturesList()
                                      throws java.io.IOException

getEntry

public java.io.InputStream getEntry(java.lang.String name)
                             throws java.io.IOException
Read any part of the archive. This is intended to be used for images and is used internally for getContent() etc.

toXHTML

public org.jdom.Document toXHTML(java.lang.String stylesheet)
                          throws XMLServException,
                                 java.io.IOException
Convert to XHTML.

toXHTML

public org.jdom.Document toXHTML(javax.xml.transform.Source stylesheet)
                          throws XMLServException,
                                 java.io.IOException
NOTE: The systemid MUST be set for the stylesheet, as the OpenOffice DTD is referenced (as well as several .mod files).

getLength

public long getLength()
Return length of file. Needed for BLOB.

getFile

public java.io.File getFile()
Return a File object for the ZIP (SOffice) file.