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(java.io.InputStream istream)
          Read the Streamable from the specified InputStream.
 void write(java.io.OutputStream ostream)
          Write the Streamable to the specified OutputStream.
 

Method Detail

read

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

Throws:
java.io.IOException

write

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

Throws:
java.io.IOException