codesimian
Class Files.GrowingByteArrayInputStream
java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
codesimian.Files.GrowingByteArrayInputStream
- All Implemented Interfaces:
- java.io.Closeable
- Enclosing class:
- Files
public static class Files.GrowingByteArrayInputStream
- extends java.io.ByteArrayInputStream
same as ByteArrayInputStream except ByteArrayInputStream.count can be set by a function,
which causes more and more bytes to be available (or less?), without replacing the byte[] array.
Fields inherited from class java.io.ByteArrayInputStream |
buf, count, mark, pos |
Methods inherited from class java.io.ByteArrayInputStream |
available, close, mark, markSupported, read, read, reset, skip |
Methods inherited from class java.io.InputStream |
read |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Files.GrowingByteArrayInputStream
public Files.GrowingByteArrayInputStream(byte[] buf,
int offset,
int length)
setCount
public void setCount(int c)