public class ReaderCharIterator extends Object implements CharIterator
Reader to the CharIterator interface.| Constructor and Description |
|---|
ReaderCharIterator(Reader in) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ReaderCharIterator(Reader in)
public static CharIterator adapt(Reader in)
public boolean hasNext()
CharIteratortrue 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 CharIteratortrue iff I have more elementspublic char next()
CharIteratornext in interface CharIteratorpublic void remove()
throws UnsupportedOperationException
remove in interface CharIteratorUnsupportedOperationExceptionCopyright © 2002–2025 The Apache Software Foundation. All rights reserved.