javax.resource.cci
Interface Streamable


public interface Streamable

The Streamable interface allows a resource adapter to interact with a Record as a stream of bytes. The Streamable interface is used by a resource adapter.


Method Summary
 void read(InputStream istream)
          Read the Streamable from the specified InputStream.
 void write(OutputStream ostream)
          Write the Streamable to the specified OutputStream.
 

Method Detail

read

void read(InputStream istream)
          throws IOException
Read the Streamable from the specified InputStream.

Throws:
IOException

write

void write(OutputStream ostream)
           throws IOException
Write the Streamable to the specified OutputStream.

Throws:
IOException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.