Class AlphaNumericFilter
- java.lang.Object
-
- org.apache.lucene.util.AttributeSource
-
- org.apache.lucene.analysis.TokenStream
-
- org.apache.lucene.analysis.TokenFilter
-
- org.owasp.dependencycheck.data.lucene.AbstractTokenizingFilter
-
- org.owasp.dependencycheck.data.lucene.AlphaNumericFilter
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.apache.lucene.util.Unwrappable<org.apache.lucene.analysis.TokenStream>
public final class AlphaNumericFilter extends AbstractTokenizingFilter
A simple alphanumeric filter that removes non-alphanumeric characters from the terms. If a term contains a non-alphanumeric character it may be split into multiple terms.Filtering examples term results in bob bob bob-cat bob cat #$% [skipped] - Author:
- jeremy long
-
-
Constructor Summary
Constructors Constructor Description AlphaNumericFilter(org.apache.lucene.analysis.TokenStream stream)Constructs a new AlphaNumericFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidend()booleanequals(java.lang.Object obj)inthashCode()booleanincrementToken()voidreset()-
Methods inherited from class org.owasp.dependencycheck.data.lucene.AbstractTokenizingFilter
addTerm, getTermAtt, getTokens
-
Methods inherited from class org.apache.lucene.util.AttributeSource
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString
-
-
-
-
Method Detail
-
incrementToken
public boolean incrementToken() throws java.io.IOException- Specified by:
incrementTokenin classorg.apache.lucene.analysis.TokenStream- Throws:
java.io.IOException
-
reset
public void reset() throws java.io.IOException- Overrides:
resetin classAbstractTokenizingFilter- Throws:
java.io.IOException
-
end
public void end() throws java.io.IOException- Overrides:
endin classorg.apache.lucene.analysis.TokenFilter- Throws:
java.io.IOException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classorg.apache.lucene.util.AttributeSource
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classorg.apache.lucene.util.AttributeSource
-
-