Tree PREV CLASS NEXT CLASS SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD com.ibm.portal.resolver.data
Interface ContentLengthDataSource
- All Superinterfaces:
- Addressable, DataSource, DataSourceFragment, Disposable, TimeStamped
- All Known Implementing Classes:
- AbstractDataSource
public interface ContentLengthDataSource- extends DataSource
Optional interface implemented by a DataSource to advertize the size of the data.
- Since:
- 6.1.0
- Note:
This interface is designed to be implemented by clients.
Field Summary static long CONTENT_LENGTH_UNKNOWN
constant for unknown content lengths
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 long getContentLength()
Return the number of bytes that this DataSource will produce.
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_LENGTH_UNKNOWN
static final long CONTENT_LENGTH_UNKNOWN
- constant for unknown content lengths
- Since:
- 6.1.0.3
- See Also:
- Constant Field Values
Method Detail getContentLength
long getContentLength()
- Returns the number of bytes that this DataSource will produce. If the number is unknown the DataSource may return CONTENT_LENGTH_UNKNOWN
- Returns:
- number of bytes or CONTENT_LENGTH_UNKNOWN
Tree PREV CLASS NEXT CLASS SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD