ImageGear for Java
memoryStream(byte[],int,int,boolean,boolean) Method
array to read from or write to. If resizable and writable are true, the internal reference initialized with bytes may subsequently be reassigned to a larger array.
offset >= 0. offset into bytes to begin I/O from.
getLength will initially return offset + len.
whether you can write to the stream.
whether the stream can be resized.
Creates a memory stream from an array of bytes.
Syntax
public static ImGearMemoryStream memoryStream( 
   byte[] bytes,
   int offset,
   int len,
   boolean writable,
   boolean resizable
)

Parameters

bytes
array to read from or write to. If resizable and writable are true, the internal reference initialized with bytes may subsequently be reassigned to a larger array.
offset
offset >= 0. offset into bytes to begin I/O from.
len
getLength will initially return offset + len.
writable
whether you can write to the stream.
resizable
whether the stream can be resized.

Return Value

an ImGearMemoryStream instance.
See Also

Reference

ImGearStreams Class
ImGearStreams Members
Overload List

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback