org.apache.axiom.attachments
Class CachedFileDataSource

java.lang.Object
  extended by javax.activation.FileDataSource
      extended by org.apache.axiom.attachments.CachedFileDataSource
All Implemented Interfaces:
javax.activation.DataSource

public class CachedFileDataSource
extends javax.activation.FileDataSource


Field Summary
(package private)  java.lang.String contentType
           
 
Constructor Summary
CachedFileDataSource(java.io.File arg0)
           
 
Method Summary
 java.lang.String getContentType()
           
 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
 

Field Detail

contentType

java.lang.String contentType
Constructor Detail

CachedFileDataSource

public CachedFileDataSource(java.io.File arg0)
Method Detail

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface javax.activation.DataSource
Overrides:
getContentType in class javax.activation.FileDataSource

setContentType

public void setContentType(java.lang.String contentType)