public class FileObjectDataSource
extends java.lang.Object
implements org.apache.axiom.attachments.SizeAwareDataSource
FileObject.
This class is similar to VFS' own FileObjectDataSource implementation, but in addition
implements SizeAwareDataSource.| Constructor and Description |
|---|
FileObjectDataSource(org.apache.commons.vfs2.FileObject file,
java.lang.String contentType) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType() |
java.io.InputStream |
getInputStream() |
java.lang.String |
getName() |
java.io.OutputStream |
getOutputStream() |
long |
getSize() |
public FileObjectDataSource(org.apache.commons.vfs2.FileObject file,
java.lang.String contentType)
public long getSize()
getSize in interface org.apache.axiom.ext.activation.SizeAwareDataSourcepublic java.lang.String getContentType()
getContentType in interface javax.activation.DataSourcepublic java.lang.String getName()
getName in interface javax.activation.DataSourcepublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface javax.activation.DataSourcejava.io.IOExceptionpublic java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface javax.activation.DataSourcejava.io.IOExceptionCopyright © 2005-2021 Apache Software Foundation. All Rights Reserved.