Class BAAInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.axiom.attachments.utils.BAAInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class BAAInputStream extends InputStream
Deprecated.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 Constructor Description BAAInputStream(ArrayList data, int size)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
available()
Deprecated.void
mark(int readlimit)
Deprecated.boolean
markSupported()
Deprecated.int
read()
Deprecated.int
read(byte[] b)
Deprecated.int
read(byte[] b, int off, int len)
Deprecated.void
reset()
Deprecated.void
writeTo(OutputStream os)
Deprecated.Write all of the buffers to the output stream-
Methods inherited from class java.io.InputStream
close, nullInputStream, readAllBytes, readNBytes, readNBytes, skip, transferTo
-
-
-
-
Constructor Detail
-
BAAInputStream
public BAAInputStream(ArrayList data, int size)
Deprecated.
-
-
Method Detail
-
read
public int read() throws IOException
Deprecated.- Specified by:
read
in classInputStream
- Throws:
IOException
-
available
public int available() throws IOException
Deprecated.- Overrides:
available
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit)
Deprecated.- Overrides:
mark
in classInputStream
-
markSupported
public boolean markSupported()
Deprecated.- Overrides:
markSupported
in classInputStream
-
read
public int read(byte[] b, int off, int len) throws IOException
Deprecated.- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
public int read(byte[] b) throws IOException
Deprecated.- Overrides:
read
in classInputStream
- Throws:
IOException
-
reset
public void reset() throws IOException
Deprecated.- Overrides:
reset
in classInputStream
- Throws:
IOException
-
writeTo
public void writeTo(OutputStream os) throws IOException
Deprecated.Write all of the buffers to the output stream- Parameters:
os
-- Throws:
IOException
-
-