Microsoft SDK for Java

IntArrayOutputStream Class Methods

The IntArrayOutputStream Class contains the following methods:

append appends an integer to the output stream.
appendTo appends the contents of the output stream onto another IntArrayOutputStream.
capacity retrieves the maximum number of integers that the IntArrayOutputStream object can hold.
copy creates a deep copy of the output stream.
copyInto copies the contents of the output stream into an array of integers.
elementAt retrieves an element from the output stream at a specified offset.
elementFromEnd retrieves an element from the output stream at a specified offset, relative to the end of the stream.
ensureCapacity ensures that the IntArrayOutputStream object has enough storage capacity for the specified number of integers.
getIntArray retrieves the array of integers represented by the IntArrayOutputStream object.
getInts copies integers from the output stream to an array.
insertElements inserts zero-initialized elements into the IntArrayOutputStream object.
isEmpty determines whether the IntArrayOutputStream object is empty.
putElement replaces an element in the output stream at a specified offset.
reduceCapacity shrinks the storage of the IntArrayOutputStream object to the requested capacity.
removeElements removes elements from the IntArrayOutputStream object.
reset sets the number of integers in the IntArrayOutputStream object to zero.
setIntArray sets the values of the IntArrayOutputStream object.
shrinkToFit reduces the capacity of the IntArrayOutputStream object to the number of integers currently in the output stream.
size retrieves the number of integers in the IntArrayOutputStream object.
toIntArray makes a copy of the array of integers represented by the IntArrayOutputStream object.
toString converts the output stream to string form.
truncate decreases the number of integers in the IntArrayOutputStream object to the specified number.
write appends an array of integers to the output stream.

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