public final class ResourcePartSource extends Object implements org.apache.commons.httpclient.methods.multipart.PartSource
Constructor and Description |
---|
ResourcePartSource(Resource res)
Constructor of the class
|
ResourcePartSource(String fileName,
Resource file)
Constructor for FilePartSource.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
createInputStream() |
String |
getFileName() |
long |
getLength() |
Resource |
getResource() |
public ResourcePartSource(Resource res) throws FileNotFoundException
res
- the FilePart source File.FileNotFoundException
- if the file does not exist or
cannot be readpublic ResourcePartSource(String fileName, Resource file) throws FileNotFoundException
fileName
- the file name of the FilePartfile
- the source File for the FilePartFileNotFoundException
- if the file does not exist or
cannot be readpublic long getLength()
getLength
in interface org.apache.commons.httpclient.methods.multipart.PartSource
public String getFileName()
getFileName
in interface org.apache.commons.httpclient.methods.multipart.PartSource
public InputStream createInputStream() throws IOException
createInputStream
in interface org.apache.commons.httpclient.methods.multipart.PartSource
IOException
public Resource getResource()
Copyright © 2015 Lucee