Microsoft SDK for Java

ensureCapacity

This method of the IntArrayOutputStream Class ensures that the IntArrayOutputStream object has enough storage capacity for the specified number of integers. If current capacity exceeds the specified capacity, the current capacity remains unchanged.

Syntax

public synchronized int ensureCapacity(int capacity);

Return Value

Returns the actual capacity of the output stream.

Parameters

capacity The minimum required capacity of the output stream.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.