|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.httpclient.methods.multipart.ByteArrayPartSource
A PartSource that reads from a byte array. This class should be used when the data to post is already loaded into memory.
Constructor Summary | |
ByteArrayPartSource(java.lang.String fileName,
byte[] bytes)
Constructor for ByteArrayPartSource. |
Method Summary | |
java.io.InputStream |
createInputStream()
Gets a new InputStream for reading this source. |
java.lang.String |
getFileName()
Gets the name of the file this source represents. |
long |
getLength()
Gets the number of bytes contained in this source. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ByteArrayPartSource(java.lang.String fileName, byte[] bytes)
fileName
- the name of the file these bytes representbytes
- the content of this partMethod Detail |
public long getLength()
PartSource.getLength()
public java.lang.String getFileName()
PartSource.getFileName()
public java.io.InputStream createInputStream() throws java.io.IOException
PartSource.createInputStream()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |