com.ibm.portal.resolver.data
Interface ByteDataSource

All Superinterfaces:
Addressable, DataSource, Disposable, TimeStamped

public interface ByteDataSource
extends DataSource

Implemented by providers of byte data streams. The stream provider must be able to copy the content of the byte stream onto the output stream that is passed as a parameter.

Since:
6.1.0
Note:
This interface is designed to be implemented by clients.

Method Summary
 java.io.OutputStream java.io.OutputStream)">write(java.io.OutputStream out)
          Copies the complete data onto the target stream.
 
Methods inherited from interface com.ibm.portal.resolver.data.DataSource
getContentType, getExpiration
 
Methods inherited from interface com.ibm.portal.resolver.data.Addressable
getParameters, getURI
 
Methods inherited from interface com.ibm.portal.TimeStamped
getCreated, getLastModified
 
Methods inherited from interface com.ibm.portal.Disposable
dispose
 

Method Detail
java.io.OutputStream)">

write

java.io.OutputStream write(java.io.OutputStream out)
                           throws java.io.IOException
Copies the complete data onto the target stream. The target stream should NOT be closed.

Parameters:
out - target stream to receive the data.
Returns:
reference to the target stream to allow method chaining
Throws:
java.io.IOException - - if the copy operation failed