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

All Implemented Interfaces:
    PartSource

A PartSource that reads from a byte array. This class should be used when the data to post is already loaded into memory.
Constructor:
 public ByteArrayPartSource(String fileName,
    byte[] bytes) 
    Constructor for ByteArrayPartSource.
    Parameters:
    fileName - the name of the file these bytes represent
    bytes - the content of this part
Method from org.apache.commons.httpclient.methods.multipart.ByteArrayPartSource 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.ByteArrayPartSource Detail:
 public InputStream createInputStream() throws IOException 
 public String getFileName() 
 public long getLength()