public class TokensAdapter extends Object implements StreamAdapter
| Constructor and Description |
|---|
TokensAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
See
Iterator.hasNext(). |
String |
next()
See
Iterator.next(). |
void |
remove()
Throws UnsupportedOperationException.
|
void |
setInputStream(InputStream stream)
Sets the input stream that backs this stream adapter.
|
void |
setLimit(Long limit) |
void |
setSkip(long skip) |
void |
setTokenPattern(String tokenPattern)
Sets the regular expression that is used to match each token.
|
public void setTokenPattern(String tokenPattern)
tokenPattern - The regular expression that is used to match each tokenpublic void setInputStream(InputStream stream)
StreamAdaptersetInputStream in interface StreamAdapterstream - The input stream that backs this stream adapterpublic void setSkip(long skip)
setSkip in interface StreamAdapterpublic void setLimit(Long limit)
setLimit in interface StreamAdapterpublic boolean hasNext()
Iterator.hasNext().public String next()
Iterator.next().public void remove()
remove in interface Iterator<String>UnsupportedOperationException - AlwaysCopyright © 2013. All Rights Reserved.