org.apache.commons.httpclient.methods.multipart
Interface PartSource
- ByteArrayPartSource, FilePartSource
public interface PartSource
An interface for providing access to data when posting MultiPart messages.
InputStream | createInputStream() - Gets a new InputStream for reading this source.
|
String | getFileName() - Gets the name of the file this source represents.
|
long | getLength() - Gets the number of bytes contained in this source.
|
createInputStream
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.
getFileName
public String getFileName()
Gets the name of the file this source represents.
- the fileName used for posting a MultiPart file part
getLength
public long getLength()
Gets the number of bytes contained in this source.
Copyright (c) 1999-2005 - Apache Software Foundation