|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectim.yixin.sdk.http.multipart.ByteArrayPartSource
public class ByteArrayPartSource
A PartSource that reads from a byte array. This class should be used when the data to post is already loaded into memory.
构造方法摘要 | |
---|---|
ByteArrayPartSource(java.lang.String fileName,
byte[] bytes)
Constructor for ByteArrayPartSource. |
方法摘要 | |
---|---|
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. |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public ByteArrayPartSource(java.lang.String fileName, byte[] bytes)
fileName
- the name of the file these bytes representbytes
- the content of this part方法详细信息 |
---|
public long getLength()
PartSource
复制的描述
PartSource
中的 getLength
PartSource.getLength()
public java.lang.String getFileName()
PartSource
复制的描述
PartSource
中的 getFileName
PartSource.getFileName()
public java.io.InputStream createInputStream()
PartSource
复制的描述
PartSource
中的 createInputStream
PartSource.createInputStream()
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |