Class BAAOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.axiom.attachments.utils.BAAOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
,org.apache.axiom.ext.io.ReadFromSupport
public class BAAOutputStream extends OutputStream implements org.apache.axiom.ext.io.ReadFromSupport
Deprecated.BAAOutputStream is like a ByteArrayOutputStream. A ByteArrayOutputStream stores the backing data in a byte[]. BAAOutputStream stores the backing data in a Array of byte[]. Using several non-contiguous chunks reduces memory copy and resizing.
-
-
Constructor Summary
Constructors Constructor Description BAAOutputStream()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ArrayList
buffers()
Deprecated.int
length()
Deprecated.long
readFrom(InputStream is, long maxRead)
Deprecated.long
receive(InputStream is, long maxRead)
Deprecated.void
write(byte[] b)
Deprecated.void
write(byte[] b, int off, int len)
Deprecated.void
write(int b)
Deprecated.-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
-
-
-
Method Detail
-
write
public void write(byte[] b, int off, int len) throws IOException
Deprecated.- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(byte[] b) throws IOException
Deprecated.- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(int b) throws IOException
Deprecated.- Specified by:
write
in classOutputStream
- Throws:
IOException
-
buffers
public ArrayList buffers()
Deprecated.
-
length
public int length()
Deprecated.
-
receive
public long receive(InputStream is, long maxRead) throws IOException
Deprecated.- Parameters:
is
- InputStream containing datamaxRead
- the maximum number of bytes to receive- Returns:
- bytesReceived
- Throws:
IOException
-
readFrom
public long readFrom(InputStream is, long maxRead) throws org.apache.axiom.ext.io.StreamCopyException
Deprecated.- Specified by:
readFrom
in interfaceorg.apache.axiom.ext.io.ReadFromSupport
- Throws:
org.apache.axiom.ext.io.StreamCopyException
-
-