Home » commons-httpclient-3.1-src » org.apache.commons » httpclient » methods » multipart » [javadoc | source]
public interface: PartSource [javadoc | source]

All Known Implementing Classes:
    FilePartSource, ByteArrayPartSource

An interface for providing access to data when posting MultiPart messages.
Method from org.apache.commons.httpclient.methods.multipart.PartSource Summary:
createInputStream,   getFileName,   getLength
Method from org.apache.commons.httpclient.methods.multipart.PartSource Detail:
 public InputStream createInputStream() throws IOException
    Gets a new InputStream for reading this source. This method can be called more than once and should therefore return a new stream every time.
 public String getFileName()
    Gets the name of the file this source represents.
 public long getLength()
    Gets the number of bytes contained in this source.