|
|||||||||||
| 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.InputStreamByteIterator
Adapts an InputStream to the ByteIterator interface.
| Constructor Summary | |
InputStreamByteIterator(InputStream in)
|
|
| Method Summary | |
static ByteIterator |
adapt(InputStream in)
|
boolean |
hasNext()
Returns true iff I have more elements. |
byte |
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 InputStreamByteIterator(InputStream in)
| Method Detail |
public boolean hasNext()
ByteIteratortrue 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 ByteIteratortrue iff I have more elementspublic byte next()
ByteIterator
next in interface ByteIterator
public void remove()
throws UnsupportedOperationException
remove in interface ByteIteratorUnsupportedOperationExceptionpublic static ByteIterator adapt(InputStream in)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||