Package org.apache.synapse.commons.vfs
Class FileObjectDataSource
java.lang.Object
org.apache.synapse.commons.vfs.FileObjectDataSource
- All Implemented Interfaces:
DataSource,org.apache.axiom.attachments.SizeAwareDataSource,org.apache.axiom.ext.activation.SizeAwareDataSource
public class FileObjectDataSource
extends Object
implements org.apache.axiom.attachments.SizeAwareDataSource
Data source that reads data from a VFS
FileObject.
This class is similar to VFS' own FileObjectDataSource implementation, but in addition
implements SizeAwareDataSource.-
Constructor Summary
ConstructorsConstructorDescriptionFileObjectDataSource(org.apache.commons.vfs2.FileObject file, String contentType) -
Method Summary
-
Constructor Details
-
FileObjectDataSource
-
-
Method Details
-
getSize
public long getSize()- Specified by:
getSizein interfaceorg.apache.axiom.ext.activation.SizeAwareDataSource
-
getContentType
- Specified by:
getContentTypein interfaceDataSource
-
getName
- Specified by:
getNamein interfaceDataSource
-
getInputStream
- Specified by:
getInputStreamin interfaceDataSource- Throws:
IOException
-
getOutputStream
- Specified by:
getOutputStreamin interfaceDataSource- Throws:
IOException
-