codesimian
Class Files.GrowingByteArrayInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.ByteArrayInputStream
          extended by 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.


Field Summary
 
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
 
Constructor Summary
Files.GrowingByteArrayInputStream(byte[] buf, int offset, int length)
           
 
Method Summary
 void setCount(int c)
           
 
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
 

Constructor Detail

Files.GrowingByteArrayInputStream

public Files.GrowingByteArrayInputStream(byte[] buf,
                                         int offset,
                                         int length)
Method Detail

setCount

public void setCount(int c)