|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjsdsi.util.InputStreamIterator
Adaptor class to make an InputStream function as an Iterator.
| Constructor Summary | |
InputStreamIterator(java.io.InputStream is)
|
|
InputStreamIterator(java.io.InputStream is,
int bufSize)
|
|
| Method Summary | |
int |
getBufSize()
|
boolean |
hasNext()
|
java.lang.Object |
next()
Returns the a number of bytes as a byte[] from the input stream
(up to bufSize in length), or null if the end of the
stream has been reached. |
void |
remove()
Not supported by this implementation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InputStreamIterator(java.io.InputStream is)
public InputStreamIterator(java.io.InputStream is,
int bufSize)
is - the InputStream to iterate overbufSize - the buffer size to return| Method Detail |
public void remove()
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationException - as not supported by this implementationIterator.remove()public boolean hasNext()
hasNext in interface java.util.IteratorJsdsiRuntimeException - wrapping any IOExceptionIterator.hasNext()public java.lang.Object next()
byte[] from the input stream
(up to bufSize in length), or null if the end of the
stream has been reached.
next in interface java.util.IteratorJsdsiRuntimeException - wrapping any IOExceptionIterator.next()public int getBufSize()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||