Class BAAInputStream

java.lang.Object
java.io.InputStream
org.apache.axiom.attachments.utils.BAAInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class BAAInputStream extends InputStream
BAAInputStream is like a ByteArrayInputStream. A ByteArrayInputStream stores the backing data in a byte[]. BAAInputStream stores the backing data in a Array of byte[]. Using several non-contiguous chunks reduces memory copy and resizing.