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, wait
forEachRemaining, remove
forEach, spliterator
public ByteArrayIterator(InputStream in, byte[] buffer)
public ByteArrayIterator autoClose(boolean autoClose)
autoClose
- 是否自动关闭public ByteArrayIterator skip(long skip)
skip
- 偏移量public void close()
SafeCloseable
close
in interface SafeCloseable
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2024. All rights reserved.