public class CopyTokenStream extends TokenStream implements Serializable
AttributeSource.State
DEFAULT_TOKEN_ATTRIBUTE_FACTORY
Constructor and Description |
---|
CopyTokenStream(List<List<AttributeImpl>> stream) |
Modifier and Type | Method and Description |
---|---|
static SerializableTokenStream |
buildSerializableTokenStream(TokenStream tokenStream) |
void |
end() |
boolean |
incrementToken() |
void |
reset() |
close
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString
public CopyTokenStream(List<List<AttributeImpl>> stream)
public static SerializableTokenStream buildSerializableTokenStream(TokenStream tokenStream)
public final boolean incrementToken() throws IOException
incrementToken
in class TokenStream
IOException
public final void end() throws IOException
end
in class TokenStream
IOException
public void reset() throws IOException
reset
in class TokenStream
IOException
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved