ImageGearJava Project > com.accusoft.imagegear.core Package > ImGearStream Class : setLength Method |
If the present length of the stream as returned by the getLength method is greater than the newLength
argument then the stream will be truncated. In this case, if the stream offset as returned by the position method is greater than newLength
then after this method returns the offset will be equal to newLength
.
If the present length of the stream as returned by the getLength method is smaller than the newLength
argument then the stream will be extended. In this case, the contents of the extended portion of the stream are not defined.