Class LimitedByteArrayOutputStream

    • Constructor Detail

      • LimitedByteArrayOutputStream

        public LimitedByteArrayOutputStream​(int max,
                                            int initial)
        Constructs a LimitedByteArrayOutputStream, which stores output in memory up to a certain specified size. When the output exceeds the specified size a LimitExceededException is thrown.
        Parameters:
        max - the maximum size in bytes which may be stored.
        initial - the initial size. It must be smaller than the max size.