|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SizeAwareDataSource
Optional extension interface that can be implemented by data sources that support a
getSize method.
Code working with data sources can use this interface to optimize certain operations.
An example is
BufferUtils.doesDataHandlerExceedLimit(javax.activation.DataHandler, int).
| Method Summary | |
|---|---|
long |
getSize()
Get the size of the data source. |
| Methods inherited from interface javax.activation.DataSource |
|---|
getContentType, getInputStream, getName, getOutputStream |
| Method Detail |
|---|
long getSize()
DataSource.getInputStream() before reaching
the end of the stream.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||