Class UrlTokenizingFilter
- 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.UrlTokenizingFilter
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.apache.lucene.util.Unwrappable<org.apache.lucene.analysis.TokenStream>
@NotThreadSafe public final class UrlTokenizingFilter extends AbstractTokenizingFilter
Takes a TokenStream, looks for URLs, and breaks them into separate tokens.- Author:
- Jeremy Long
-
-
Constructor Summary
Constructors Constructor Description UrlTokenizingFilter(org.apache.lucene.analysis.TokenStream stream)Constructs a new UrlTokenizingFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanincrementToken()Increments the underlying TokenStream and sets CharTermAttributes to construct an expanded set of tokens by concatenating tokens with the previous token.-
Methods inherited from class org.owasp.dependencycheck.data.lucene.AbstractTokenizingFilter
addTerm, getTermAtt, getTokens, reset
-
Methods inherited from class org.apache.lucene.util.AttributeSource
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString
-
-
-
-
Method Detail
-
incrementToken
public boolean incrementToken() throws java.io.IOExceptionIncrements the underlying TokenStream and sets CharTermAttributes to construct an expanded set of tokens by concatenating tokens with the previous token.- Specified by:
incrementTokenin classorg.apache.lucene.analysis.TokenStream- Returns:
- whether or not we have hit the end of the TokenStream
- Throws:
java.io.IOException- is thrown when an IOException occurs
-
-