Class BAAInputStream
java.lang.Object
java.io.InputStream
org.apache.axiom.attachments.utils.BAAInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
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.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
close, nullInputStream, readAllBytes, readNBytes, readNBytes, skip, skipNBytes, transferTo
-
Constructor Details
-
BAAInputStream
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
writeTo
Write all of the buffers to the output stream- Parameters:
os-- Throws:
IOException
-