Package org.apache.tika.parser.microsoft
Class AbstractOfficeParser
java.lang.Object
org.apache.tika.parser.microsoft.AbstractOfficeParser
- All Implemented Interfaces:
Serializable,SelfConfiguring,Parser
- Direct Known Subclasses:
OfficeParser,OOXMLParser,Word2006MLParser
Intermediate layer to set
OfficeParserConfig uniformly.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(ParseContext parseContext) Checks to see if the user has specified anOfficeParserConfig.intvoidsetByteArrayMaxOverride(int maxOverride) WARNING: this sets a static variable in POI.protected voidAllows subclasses to set the default configuration during construction.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tika.parser.Parser
getSupportedTypes, parse
-
Constructor Details
-
AbstractOfficeParser
public AbstractOfficeParser()
-
-
Method Details
-
configure
Checks to see if the user has specified anOfficeParserConfig. If so, no changes are made; if not, one is added to the context.- Parameters:
parseContext-
-
setDefaultOfficeParserConfig
Allows subclasses to set the default configuration during construction.- Parameters:
config- the configuration to use as default
-
getDefaultConfig
-
setByteArrayMaxOverride
public void setByteArrayMaxOverride(int maxOverride) WARNING: this sets a static variable in POI. This allows users to override POI's protection of the allocation of overly large byte arrays. Use carefully; and please open up issues on POI's bugzilla to bump values for specific records. If the value is <&eq; 0, this value is ignored- Parameters:
maxOverride-
-
getByteArrayMaxOverride
public int getByteArrayMaxOverride()
-