Home » commons-httpclient-3.1-src » org.apache.commons » httpclient » methods » multipart » [javadoc | source]
org.apache.commons.httpclient.methods.multipart
public class: FilePartSource [javadoc | source]
java.lang.Object
   org.apache.commons.httpclient.methods.multipart.FilePartSource

All Implemented Interfaces:
    PartSource

A PartSource that reads from a File.
Constructor:
 public FilePartSource(File file) throws FileNotFoundException 
    Constructor for FilePartSource.
    Parameters:
    file - the FilePart source File.
    Throws:
    FileNotFoundException - if the file does not exist or cannot be read
 public FilePartSource(String fileName,
    File file) throws FileNotFoundException 
    Constructor for FilePartSource.
    Parameters:
    fileName - the file name of the FilePart
    file - the source File for the FilePart
    Throws:
    FileNotFoundException - if the file does not exist or cannot be read
Method from org.apache.commons.httpclient.methods.multipart.FilePartSource Summary:
createInputStream,   getFileName,   getLength
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.httpclient.methods.multipart.FilePartSource Detail:
 public InputStream createInputStream() throws IOException 
 public String getFileName() 
    Return the current filename
 public long getLength() 
    Return the length of the file