java.lang.Object | |
↳ | com.ning.http.multipart.ByteArrayPartSource |
This class is an adaptation of the Apache HttpClient implementationhttp://hc.apache.org/httpclient-3.x/
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for ByteArrayPartSource.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets a new InputStream for reading this source.
| |||||||||||
Gets the name of the file this source represents.
| |||||||||||
Gets the number of bytes contained in this source.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.ning.http.multipart.PartSource
|
Constructor for ByteArrayPartSource.
fileName | the name of the file these bytes represent |
---|---|
bytes | the content of this part |
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.
IOException |
---|
Gets the name of the file this source represents.