Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.commons.httpclient.methods.multipart.FilePartSource
Constructor Summary | |
| |
|
Method Summary | |
InputStream |
|
String |
|
long |
|
public FilePartSource(File file) throws FileNotFoundException
Constructor for FilePartSource.
- Parameters:
file
- the FilePart source File.
public FilePartSource(String fileName, File file) throws FileNotFoundException
Constructor for FilePartSource.
- Parameters:
fileName
- the file name of the FilePartfile
- the source File for the FilePart
public InputStream createInputStream() throws IOException
Return a newFileInputStream
for the current filename.
- Specified by:
- createInputStream in interface PartSource
- Returns:
- the new input stream.
- See Also:
PartSource.createInputStream()
public String getFileName()
Return the current filename
- Specified by:
- getFileName in interface PartSource
- Returns:
- the filename.
- See Also:
PartSource.getFileName()
public long getLength()
Return the length of the file
- Specified by:
- getLength in interface PartSource
- Returns:
- the length of the file.
- See Also:
PartSource.getLength()