Streamable (Java EE 5)

Java EE API


javax.resource.cci Interface Streamable


public interface Streamable


Streamable 接口使资源适配器能够从输入 Record 中提取数据,或者将数据置于输出 Record 中作为字节流。

Streamable 接口提供组件在 Record 实例中设置的资源适配器的数据视图。

组件不能直接使用 Streamable 接口。而是通过资源适配器实现使用。组件使用 Record 或任何派生的接口来管理记录。

英文文档:

Streamable interface enables a resource adapter to extract data from an input Record or set data into an output Record as a stream of bytes.

The Streamable interface provides a resource adapter's view of the data that has been set in a Record instance by a component.

The Streamable interface is not directly used by a component. It is used by a resource adapter implementation. A component uses Record or any derived interfaces to manage records.

Since:
0.8
Author:
Rahul Sharma
See Also:
Record

Method Summary
 void
 void
 

Method Detail

public void read(java.io.InputStream istream) throws java.io.IOException
从 InputStream 中读取数据并初始化 Streamable 对象的字段。
istream 表示 Streamable 对象字段特定于资源适配器的内部表示形式的 InputStream
英文文档:

read

void read(InputStream istream)
          throws IOException
Read data from an InputStream and initialize fields of a Streamable object.

Parameters:
istream - InputStream that represents a resource adapter specific internal representation of fields of a Streamable object
Throws:
IOException

public void write(java.io.OutputStream ostream) throws java.io.IOException
将 Streamable 对象的字段写入 OutputStream
ostream 包含 Streamable 对象值的 OutputStream
英文文档:

write

void write(OutputStream ostream)
           throws IOException
Write fields of a Streamable object to an OutputStream

Parameters:
ostream - OutputStream that holds value of a Streamable object
Throws:
IOException


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!