IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.io
Interface XsDataStreamManager


public interface XsDataStreamManager

The XsDataStreamManager is used to manage and create instances of XsDataInputStream and XsDataOutputStream objects. For the most part, data streams created by the XsDataStreamManager are allocated by WebSphere eXtreme Scale runtime components.

Since:
7.1.1

Method Summary
 XsDataInputStream createInputStream(byte[] bytes)
          Create a new XsDataInputStream using the bytes specified as the data backing.
 XsDataOutputStream createOutputStream()
          Create a new XsDataOutputStream.
 

Method Detail

createInputStream

XsDataInputStream createInputStream(byte[] bytes)
                                    throws IOException
Create a new XsDataInputStream using the bytes specified as the data backing. Do not change the data while the stream is using the data. The manager will not copy the data.

Parameters:
bytes - - The data used to back the XsDataInputStream.
Returns:
XsDataInputStream - the stream used to read the data
Throws:
IOException - - an unexpected IO error creating the stream

createOutputStream

XsDataOutputStream createOutputStream()
                                      throws IOException
Create a new XsDataOutputStream. The type of storage used for the XsDataOutputStream data backing is unspecified. Close the XsDataOutputStream when finished, thereby allowing any pooling of underlying data buffers to be reclaimed by the system.

Returns:
XsDataOutputStream - the data output stream
Throws:
IOException - - an unexpected IO error creating the stream

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.