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.
- author:
<
- a href="mailto:becke@u.washington.edu">Michael Becke
- since:
2.0
-
Constructor: |
public ByteArrayPartSource(String fileName,
byte[] bytes) {
this.fileName = fileName;
this.bytes = bytes;
}
Constructor for ByteArrayPartSource. Parameters:
fileName - the name of the file these bytes represent
bytes - the content of this part
|