Class RTFParser
java.lang.Object
org.apache.tika.parser.AbstractParser
org.apache.tika.parser.microsoft.rtf.RTFParser
- All Implemented Interfaces:
Serializable,org.apache.tika.parser.Parser
public class RTFParser
extends org.apache.tika.parser.AbstractParser
RTF parser
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intDeprecated.intSet<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) static voidsetMaxBytesForEmbeddedObject(int max) Deprecated.voidsetMemoryLimitInKb(int memoryLimitInKb) Methods inherited from class org.apache.tika.parser.AbstractParser
parse
-
Constructor Details
-
RTFParser
public RTFParser()
-
-
Method Details
-
getMaxBytesForEmbeddedObject
Deprecated.- Returns:
- maximum number of bytes allowed for an embedded object.
-
setMaxBytesForEmbeddedObject
Deprecated.usesetMemoryLimitInKb(int)insteadBytes for embedded objects are currently cached in memory. If something goes wrong during the parsing of an embedded object, it is possible that a read length may be crazily too long and cause a heap crash.- Parameters:
max- maximum number of bytes to allow for embedded objects. If the embedded object has more than this number of bytes, skip it.
-
getSupportedTypes
public Set<org.apache.tika.mime.MediaType> getSupportedTypes(org.apache.tika.parser.ParseContext context) -
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 - Throws:
IOExceptionSAXExceptionorg.apache.tika.exception.TikaException
-
getMemoryLimitInKb
public int getMemoryLimitInKb() -
setMemoryLimitInKb
@Field public void setMemoryLimitInKb(int memoryLimitInKb)
-
setMemoryLimitInKb(int)instead