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()
ByteIterator
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 ByteIterator
true
iff I have more elementspublic byte next()
ByteIterator
next
in interface ByteIterator
public void remove() throws UnsupportedOperationException
remove
in interface ByteIterator
UnsupportedOperationException
public static ByteIterator adapt(InputStream in)
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.