|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.collections.primitives.adapters.io.ReaderCharIterator
public class ReaderCharIterator
Adapts a Reader
to the CharIterator
interface.
Constructor Summary | |
---|---|
ReaderCharIterator(Reader in)
|
Method Summary | |
---|---|
static CharIterator |
adapt(Reader in)
|
boolean |
hasNext()
Returns true iff I have more elements. |
char |
next()
Returns the next element in me. |
void |
remove()
Not supported. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReaderCharIterator(Reader in)
Method Detail |
---|
public static CharIterator adapt(Reader in)
public boolean hasNext()
CharIterator
true
iff I have more elements.
(In other words, returns true
iff
a subsequent call to next
will return
an element rather than throwing an exception.)
hasNext
in interface CharIterator
true
iff I have more elementspublic char next()
CharIterator
next
in interface CharIterator
public void remove() throws UnsupportedOperationException
remove
in interface CharIterator
UnsupportedOperationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |