|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.activation.FileDataSource
org.apache.axiom.attachments.CachedFileDataSource
public class CachedFileDataSource
| Constructor Summary | |
|---|---|
CachedFileDataSource(java.io.File file)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getContentType()
|
long |
getSize()
Get the size of the data source. |
void |
setContentType(java.lang.String contentType)
|
| Methods inherited from class javax.activation.FileDataSource |
|---|
getFile, getInputStream, getName, getOutputStream, setFileTypeMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.activation.DataSource |
|---|
getInputStream, getName, getOutputStream |
| Constructor Detail |
|---|
public CachedFileDataSource(java.io.File file)
| Method Detail |
|---|
public java.lang.String getContentType()
getContentType in interface javax.activation.DataSourcegetContentType in class javax.activation.FileDataSourcepublic void setContentType(java.lang.String contentType)
public long getSize()
SizeAwareDataSourceDataSource.getInputStream() before reaching
the end of the stream. If the implementation is unable to determine the
size, it must return -1.
getSize in interface SizeAwareDataSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||