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 Details

    • RTFParser

      public RTFParser()
  • Method Details

    • getMaxBytesForEmbeddedObject

      @Deprecated public static int getMaxBytesForEmbeddedObject()
      Deprecated.
      Returns:
      maximum number of bytes allowed for an embedded object.
    • setMaxBytesForEmbeddedObject

      @Deprecated public static void setMaxBytesForEmbeddedObject(int max)
      Deprecated.
      Bytes 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:
      IOException
      SAXException
      org.apache.tika.exception.TikaException
    • getMemoryLimitInKb

      public int getMemoryLimitInKb()
    • setMemoryLimitInKb

      @Field public void setMemoryLimitInKb(int memoryLimitInKb)