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.SizeAwareDataSource
public String getContentType()
getContentType
in interface DataSource
public String getName()
getName
in interface DataSource
public InputStream getInputStream() throws IOException
getInputStream
in interface DataSource
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.