public abstract static class Analyzer.ReuseStrategy
extends java.lang.Object
Analyzer.tokenStream(String, java.io.Reader)
.Constructor and Description |
---|
ReuseStrategy()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract Analyzer.TokenStreamComponents |
getReusableComponents(Analyzer analyzer,
java.lang.String fieldName)
Gets the reusable TokenStreamComponents for the field with the given name.
|
abstract void |
setReusableComponents(Analyzer analyzer,
java.lang.String fieldName,
Analyzer.TokenStreamComponents components)
Stores the given TokenStreamComponents as the reusable components for the
field with the give name.
|
public ReuseStrategy()
public abstract Analyzer.TokenStreamComponents getReusableComponents(Analyzer analyzer, java.lang.String fieldName)
analyzer
- Analyzer from which to get the reused components. Use
getStoredValue(Analyzer)
and setStoredValue(Analyzer, Object)
to access the data on the Analyzer.fieldName
- Name of the field whose reusable TokenStreamComponents
are to be retrievednull
if there was no previous components for the fieldpublic abstract void setReusableComponents(Analyzer analyzer, java.lang.String fieldName, Analyzer.TokenStreamComponents components)
fieldName
- Name of the field whose TokenStreamComponents are being setcomponents
- TokenStreamComponents which are to be reused for the fieldCopyright © 2010 - 2019 Adobe. All Rights Reserved