Class RTFParser
- java.lang.Object
-
- org.apache.tika.parser.microsoft.rtf.RTFParser
-
- All Implemented Interfaces:
Serializable,org.apache.tika.parser.Parser
public class RTFParser extends Object implements org.apache.tika.parser.Parser
RTF parser- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RTFParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMemoryLimitInKb()Set<org.apache.tika.mime.MediaType>getSupportedTypes(org.apache.tika.parser.ParseContext context)voidparse(InputStream stream, ContentHandler handler, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext context)voidparseInline(InputStream is, ContentHandler handler, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext context)This bypasses wrapping the handler for inline parsing (in at least the OutlookExtractor).voidsetMemoryLimitInKb(int memoryLimitInKb)
-
-
-
Method Detail
-
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
-
parseInline
public void parseInline(InputStream is, ContentHandler handler, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext context) throws org.apache.tika.exception.TikaException, IOException, SAXException
This bypasses wrapping the handler for inline parsing (in at least the OutlookExtractor).- Parameters:
is-handler-metadata-context-- Throws:
org.apache.tika.exception.TikaExceptionIOExceptionSAXException
-
getMemoryLimitInKb
public int getMemoryLimitInKb()
-
setMemoryLimitInKb
@Field public void setMemoryLimitInKb(int memoryLimitInKb)
-
-