Class WordPerfectParser
java.lang.Object
org.apache.tika.parser.wordperfect.WordPerfectParser
- All Implemented Interfaces:
Serializable,org.apache.tika.parser.Parser
Parser for Corel WordPerfect documents. Targets WP6 File Format but appears to be compatible with more recent versions too.
- Author:
- Pascal Essiembre
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet<org.apache.tika.mime.MediaType>getSupportedTypes(org.apache.tika.parser.ParseContext context) booleanvoidparse(InputStream stream, ContentHandler handler, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext context) voidsetIncludeDeletedContent(boolean includeDeletedContent) Whether or not to include deleted content.
-
Constructor Details
-
WordPerfectParser
public WordPerfectParser()
-
-
Method Details
-
getSupportedTypes
public Set<org.apache.tika.mime.MediaType> getSupportedTypes(org.apache.tika.parser.ParseContext context) - Specified by:
getSupportedTypesin interfaceorg.apache.tika.parser.Parser
-
parse
public void parse(InputStream stream, ContentHandler handler, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext context) throws IOException, SAXException, org.apache.tika.exception.TikaException - Specified by:
parsein interfaceorg.apache.tika.parser.Parser- Throws:
IOExceptionSAXExceptionorg.apache.tika.exception.TikaException
-
setIncludeDeletedContent
@Field public void setIncludeDeletedContent(boolean includeDeletedContent) Whether or not to include deleted content. This currently only works with WP6. The default istrue- Parameters:
includeDeletedContent-
-
isIncludeDeletedContent
public boolean isIncludeDeletedContent()
-