public class ByteArrayIterator extends Object implements Iterator<Integer>, Iterable<Integer>, SafeCloseable, Serializable
| Constructor and Description |
|---|
ByteArrayIterator(InputStream in,
byte[] buffer) |
| Modifier and Type | Method and Description |
|---|---|
ByteArrayIterator |
autoClose(boolean autoClose)
设置流自动关闭
|
void |
close()
安全关闭
|
boolean |
hasNext() |
Iterator<Integer> |
iterator() |
Integer |
next() |
ByteArrayIterator |
skip(long skip)
设置偏移量
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removeforEach, spliteratorpublic ByteArrayIterator(InputStream in, byte[] buffer)
public ByteArrayIterator autoClose(boolean autoClose)
autoClose - 是否自动关闭public ByteArrayIterator skip(long skip)
skip - 偏移量public void close()
SafeCloseableclose in interface SafeCloseableclose in interface Closeableclose in interface AutoCloseableCopyright © 2025. All rights reserved.