ImageGear for Java
ImGearStream Class Members
Methods 

The following tables list the members exposed by ImGearStream.

Public Constructors
 NameDescription
Public ConstructorImGearStream Constructor  
Top
Public Methods
 NameDescription
Public MethodcloseCloses stream and releases any system resources associated with it.

Has no effect if stream is already closed.

 
Public MethodflushFlushes streams implementing a buffer.  
Public MethodgetLengthReturns the length of this stream.  
Public MethodisReadableReturns whether you can read from this stream.  
Public MethodisWritableReturns whether you can write to this stream.  
Public MethodpositionReturns the current offset in this stream.  
Public MethodreadReads up to len bytes of data from this stream into an array of bytes.  
Public MethodreadByteReads the next byte from the stream.  
Public MethodseekSets the position within this stream.  
Public MethodsetLengthSets 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.

 
Public MethodwriteWrites len bytes from the specified byte array starting at offset off to this stream.  
Public MethodwriteByteWrites a byte to the stream.  
Top
See Also

Reference

ImGearStream Class
com.accusoft.imagegear.core Package

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback