public class InputStreamByteIterator extends Object implements ByteIterator
InputStream to the ByteIterator interface.| Constructor and Description |
|---|
InputStreamByteIterator(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public InputStreamByteIterator(InputStream in)
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()
ByteIteratornext in interface ByteIteratorpublic void remove() throws UnsupportedOperationException
remove in interface ByteIteratorUnsupportedOperationExceptionpublic static ByteIterator adapt(InputStream in)
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.