Class CtanTokenizer
java.lang.Object
org.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.Tokenizer
org.ctan.site.services.search.base.CtanTokenizer
- All Implemented Interfaces:
Closeable
,AutoCloseable
public final class CtanTokenizer
extends org.apache.lucene.analysis.Tokenizer
This tokenizer knows a little bit of TeX.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource
org.apache.lucene.util.AttributeSource.State
-
Field Summary
Fields inherited from class org.apache.lucene.analysis.Tokenizer
input
Fields inherited from class org.apache.lucene.analysis.TokenStream
DEFAULT_TOKEN_ATTRIBUTE_FACTORY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Overwritten to make SpotBugs happy.int
hashCode()
Overwritten to make SpotBugs happy.boolean
Methods inherited from class org.apache.lucene.analysis.Tokenizer
close, correctOffset, reset, setReader, setReaderTestPoint
Methods inherited from class org.apache.lucene.analysis.TokenStream
end
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
-
Constructor Details
-
CtanTokenizer
Creates a new object.- Parameters:
reader
- the reader
-
-
Method Details
-
equals
Overwritten to make SpotBugs happy.- Overrides:
equals
in classorg.apache.lucene.util.AttributeSource
- See Also:
-
hashCode
public int hashCode()Overwritten to make SpotBugs happy.- Overrides:
hashCode
in classorg.apache.lucene.util.AttributeSource
- See Also:
-
incrementToken
- Specified by:
incrementToken
in classorg.apache.lucene.analysis.TokenStream
- Throws:
IOException
- See Also:
-