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.
|
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