ImageGear for Java
ImGearMemoryStream Class Methods

For a list of all members of this type, see ImGearMemoryStream members.

Public Methods
 NameDescription
Public MethodcloseCloses stream and releases any system resources associated with it.

Has no effect if stream is already closed.

(Inherited from com.accusoft.imagegear.core.ImGearStream)
Public MethodflushFlushes streams implementing a buffer. (Inherited from com.accusoft.imagegear.core.ImGearStream)
Public MethodgetBufferReturns the array of bytes "backing" this stream.

The bytes from the element at ImGearStream.getLength length onwards are not valid.

 
Public MethodgetLengthReturns the length of this stream. (Inherited from com.accusoft.imagegear.core.ImGearStream)
Public MethodisReadableReturns whether you can read from this stream. (Inherited from com.accusoft.imagegear.core.ImGearStream)
Public MethodisWritableReturns whether you can write to this stream. (Inherited from com.accusoft.imagegear.core.ImGearStream)
Public MethodpositionReturns the current offset in this stream. (Inherited from com.accusoft.imagegear.core.ImGearStream)
Public MethodreadReads up to len bytes of data from this stream into an array of bytes. (Inherited from com.accusoft.imagegear.core.ImGearStream)
Public MethodreadByteReads the next byte from the stream. (Inherited from com.accusoft.imagegear.core.ImGearStream)
Public MethodseekSets the position within this stream. (Inherited from com.accusoft.imagegear.core.ImGearStream)
Public MethodsetLengthSets the length of this stream.

If the present length of the stream as returned by the ImGearStream.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 ImGearStream.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 ImGearStream.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.

(Inherited from com.accusoft.imagegear.core.ImGearStream)
Public MethodtoArrayReturns a copy of the bytes accessed.

Copies the first ImGearStream.getLength length bytes of this stream's internal buffer, which is available from getBuffer.

 
Public MethodwriteWrites len bytes from the specified byte array starting at offset off to this stream. (Inherited from com.accusoft.imagegear.core.ImGearStream)
Public MethodwriteByteWrites a byte to the stream. (Inherited from com.accusoft.imagegear.core.ImGearStream)
Top
See Also

Reference

ImGearMemoryStream Class
com.accusoft.imagegear.core Package

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback