public ICUTransformFilter(TokenStream input, Transliterator transform) {super(input);this.transform = transform;if (transform.getFilter() == null && transform instanceof com.ibm.icu.text.RuleBasedTransliterator) {final UnicodeSet sourceSet = transform.getSourceSet();if (sourceSet != null && !sourceSet.isEmpty())transform.setFilter(sourceSet);}}
public ICUTransformFilter(TokenStream input, Transliterator transform): base(input){this.transform = transform;this.termAtt = AddAttribute<ICharTermAttribute>();if (transform.Filter == null && transform is RuleBasedTransliterator){UnicodeSet sourceSet = transform.GetSourceSet();if (sourceSet != null && sourceSet.Any())transform.Filter=sourceSet;}}