Package org.apache.axiom.attachments
Class CachedFileDataSource
- java.lang.Object
-
- javax.activation.FileDataSource
-
- org.apache.axiom.attachments.CachedFileDataSource
-
- All Implemented Interfaces:
DataSource
public class CachedFileDataSource extends FileDataSource
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Loglog
-
Constructor Summary
Constructors Constructor Description CachedFileDataSource(File arg0)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()voidsetContentType(String contentType)-
Methods inherited from class javax.activation.FileDataSource
getFile, getInputStream, getName, getOutputStream, setFileTypeMap
-
-
-
-
Constructor Detail
-
CachedFileDataSource
public CachedFileDataSource(File arg0)
-
-
Method Detail
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceDataSource- Overrides:
getContentTypein classFileDataSource
-
setContentType
public void setContentType(String contentType)
-
-