Class 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 Detail

      • BAAOutputStream

        public BAAOutputStream()
        Deprecated.
    • Method Detail

      • 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 data
        maxRead - 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 interface org.apache.axiom.ext.io.ReadFromSupport
        Throws:
        org.apache.axiom.ext.io.StreamCopyException