| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.commons.httpclient.methods.multipart.FilePartSourceConstructor Summary | |
| |
| |
Method Summary | |
InputStream |
|
String |
|
long |
|
public FilePartSource(File file)
throws FileNotFoundExceptionConstructor for FilePartSource.
- Parameters:
file- the FilePart source File.
public FilePartSource(String fileName,
File file)
throws FileNotFoundExceptionConstructor for FilePartSource.
- Parameters:
fileName- the file name of the FilePartfile- the source File for the FilePart
public InputStream createInputStream()
throws IOExceptionReturn a newFileInputStreamfor 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()