Class KnownLengthInputStream

java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
org.duracloud.chunk.stream.KnownLengthInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class KnownLengthInputStream extends ByteArrayInputStream
This wraps ByteArrayInputStream and adds a length field.
Author:
Andrew Woods Date: Feb 10, 2010