com.ibm.portal.resolver.data
Interface ContentDispositionDataSource
- All Superinterfaces:
- Addressable, DataSource, DataSourceFragment, Disposable, TimeStamped
- All Known Implementing Classes:
- AbstractDataSource
public interface ContentDispositionDataSource
- extends DataSource
Captures information about the presentation of the data source
- Since:
- 6.1.0
- Note:
This interface is designed to be implemented by clients. |
FILE_SIZE_UNKNOWN
static final long FILE_SIZE_UNKNOWN
- indicator for an unknown file size
- See Also:
- Constant Field Values
getDisposition
ContentDispositionDataSource.DISPOSITION getDisposition()
- Returns the content disposition
- Returns:
- the disposition, not
null
getFileName
java.lang.String getFileName()
- Returns the desired filename
- Returns:
- the filename or
null
getFileSize
long getFileSize()
- Returns the approximate file size of the data. Note that this is
different from the information returned by
ContentLengthDataSource.getContentLength()
.
- Returns:
- the file size,
0
or < 0
. A value of
< 0
indicates that the filesize is unknown.