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