|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.commons.net.ResourcePartSource
public final class ResourcePartSource
Constructor Summary | |
---|---|
ResourcePartSource(Resource res)
Constructor of the class |
|
ResourcePartSource(String fileName,
Resource file)
Constructor for FilePartSource. |
Method Summary | |
---|---|
InputStream |
createInputStream()
Return a new FileInputStream for the current filename. |
String |
getFileName()
Return the current filename |
long |
getLength()
Return the length of the file |
Resource |
getResource()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 FilePart
FileNotFoundException
- if the file does not exist or
cannot be readMethod Detail |
---|
public long getLength()
getLength
in interface org.apache.commons.httpclient.methods.multipart.PartSource
PartSource.getLength()
public String getFileName()
getFileName
in interface org.apache.commons.httpclient.methods.multipart.PartSource
PartSource.getFileName()
public InputStream createInputStream() throws IOException
FileInputStream
for the current filename.
createInputStream
in interface org.apache.commons.httpclient.methods.multipart.PartSource
IOException
- If an IO problem occurs.PartSource.createInputStream()
public Resource getResource()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |