Sets the length of this stream to the specified value.
public void setLength( long value )
value
The new length of the stream.
IOException thrown if an I/O error occurs or if the stream does not support resizing.
If this value is less than the current length of the stream, the stream is truncated. If it is greater than the current length of the stream, the stream is expanded. If the stream is expanded, the contents of the stream between the old and the new length are undefined.
See Also getLength