public class FileObjectDataSource extends Object implements org.apache.axiom.ext.activation.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,
String contentType) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
long |
getSize() |
public FileObjectDataSource(org.apache.commons.vfs2.FileObject file,
String contentType)
public long getSize()
getSize in interface org.apache.axiom.ext.activation.SizeAwareDataSourcepublic String getContentType()
getContentType in interface DataSourcepublic String getName()
getName in interface DataSourcepublic InputStream getInputStream() throws IOException
getInputStream in interface DataSourceIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in interface DataSourceIOExceptionCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.