/** * Each {@link IFilter} has a small set of options beyond normal configuration that gives the * {@link IFilter} the needed information to properly parse the content. * * @param sourceLocale * - source locale of the input document * @param targetLocale * - target locale if the input document is multilingual. * @param defaultEncoding * - assumed encoding of the input document. May be overriden if a different encoding * is detected. * @param generateSkeleton * - store skeleton (non-translatable parts of the document) along with the extracted * text. */ public void setOptions(LocaleId sourceLocale, LocaleId targetLocale, String defaultEncoding, boolean generateSkeleton) { setEncoding(defaultEncoding); setTrgLoc(targetLocale); setSrcLoc(sourceLocale); setGenerateSkeleton(generateSkeleton); }