com.ibm.portal.resolver.data
Interface ByteDataSource

All Superinterfaces:
Addressable, DataSource, DataSourceFragment, 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.

Field Summary
static java.lang.String CONTENT_TYPE_BINARY
          Mime type for simple, binary messages http://www.rfc-editor.org/rfc/rfc2046.txt
 
Fields inherited from interface com.ibm.portal.resolver.data.DataSource
CONTENT_TYPE_UNKNOWN, CREATION_UNKNOWN, EXPIRATION_UNKNOWN, LAST_MODIFICATION_UNKNOWN, MAX_AGE_INFINITE, MAX_AGE_NONE, ROOT_DATE
 
Fields inherited from interface com.ibm.portal.resolver.data.Addressable
EMPTY_PARAMETERS
 
Method Summary
 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, getCreated, getExpiration, getLastModified
 
Methods inherited from interface com.ibm.portal.resolver.data.Addressable
getParameters, getURI
 
Methods inherited from interface com.ibm.portal.Disposable
dispose
 

Field Detail

CONTENT_TYPE_BINARY

static final java.lang.String CONTENT_TYPE_BINARY
Mime type for simple, binary messages http://www.rfc-editor.org/rfc/rfc2046.txt

Since:
6.1.0.3
See Also:
Constant Field Values
Method Detail

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