Overview | Methods | This Package | All Packages
Sets the length of this stream to the specified value.
Syntax
public void setLength( long value )
Parameters
value
The new length of the stream.
Exceptions
IOException thrown if an I/O error occurs or if the stream does not support resizing.
Remarks
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