ImageGear for Java
setLength Method
- new length for stream
Sets the length of this stream.

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.

Syntax
public abstract void setLength( 
   long newLength
)

Parameters

newLength
- new length for stream
See Also

Reference

ImGearStream Class
ImGearStream Members

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback