commons-io / commons-io / 2.11.0 / docs / org / apache / commons / io / output / UnsynchronizedByteArrayOutputStream.html
org.apache.commons.io.output

Class UnsynchronizedByteArrayOutputStream

    • Constructor Detail

      • UnsynchronizedByteArrayOutputStream

        public UnsynchronizedByteArrayOutputStream()
        Creates a new byte array output stream. The buffer capacity is initially bytes, though its size increases if necessary.
      • UnsynchronizedByteArrayOutputStream

        public UnsynchronizedByteArrayOutputStream(int size)
        Creates a new byte array output stream, with a buffer capacity of the specified size, in bytes.
        Parameters:
        size - the initial size
        Throws:
        IllegalArgumentException - if size is negative

Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.