Microsoft SDK for Java

truncate

This method of the IntArrayOutputStream Class decreases the number of integers in the IntArrayOutputStream object to the specified number.

Syntax

public synchronized void truncate(int newsize);

Parameters

newsize The number of integers that the truncated output stream will hold.

Exceptions

ArrayIndexOutOfBoundsException if the specified number exceeds or equals the number of integers currently in the output stream.

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