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)
StreamAdapter
setInputStream
in interface StreamAdapter
stream
- The input stream that backs this stream adapterpublic void setSkip(long skip)
setSkip
in interface StreamAdapter
public void setLimit(Long limit)
setLimit
in interface StreamAdapter
public boolean hasNext()
Iterator.hasNext()
.public String next()
Iterator.next()
.public void remove()
remove
in interface Iterator<String>
UnsupportedOperationException
- AlwaysCopyright © 2013. All Rights Reserved.