liuslite.parser.opendocument
Class OpenOfficeParser
java.lang.Object
liuslite.parser.Parser
liuslite.parser.opendocument.OpenOfficeParser
public class OpenOfficeParser
- extends Parser
OpenOffice parser
- Author:
- Rida Benjelloun (ridabenjelloun@apache.org)
Method Summary |
Content |
getContent(java.lang.String name)
Get a content object, this object is configured from the LiusConfig Xml. |
java.util.List<Content> |
getContents()
Get a List of contents objects, this objects are configured from the
LiusConfig Xml file. |
java.lang.String |
getStrContent()
Get the string content of the document |
org.jdom.Document |
parse(java.io.InputStream is)
|
java.util.List |
unzip(java.io.InputStream is)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenOfficeParser
public OpenOfficeParser()
parse
public org.jdom.Document parse(java.io.InputStream is)
getContents
public java.util.List<Content> getContents()
- Description copied from class:
Parser
- Get a List of contents objects, this objects are configured from the
LiusConfig Xml file. It could be a document metadata, XPath selection,
regex selection or fulltext
- Specified by:
getContents
in class Parser
getStrContent
public java.lang.String getStrContent()
- Description copied from class:
Parser
- Get the string content of the document
- Specified by:
getStrContent
in class Parser
unzip
public java.util.List unzip(java.io.InputStream is)
getContent
public Content getContent(java.lang.String name)
- Description copied from class:
Parser
- Get a content object, this object is configured from the LiusConfig Xml.
It could be a document metadata, XPath selection, regex selection or
fulltext
- Specified by:
getContent
in class Parser