|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectim.yixin.sdk.http.multipart.FilePartSource
public class FilePartSource
A PartSource that reads from a File.
构造方法摘要 | |
---|---|
FilePartSource(java.lang.String ofile,
java.io.File file)
Constructor for FilePartSource. |
方法摘要 | |
---|---|
java.io.InputStream |
createInputStream()
Return a new FileInputStream for the current filename. |
java.lang.String |
getFileName()
Return the current filename |
long |
getLength()
Return the length of the file |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public FilePartSource(java.lang.String ofile, java.io.File file) throws java.io.FileNotFoundException
file
- the FilePart source File.
java.io.FileNotFoundException
- if the file does not exist or cannot be read方法详细信息 |
---|
public long getLength()
PartSource
中的 getLength
PartSource.getLength()
public java.lang.String getFileName()
PartSource
中的 getFileName
PartSource.getFileName()
public java.io.InputStream createInputStream() throws java.io.IOException
FileInputStream
for the current filename.
PartSource
中的 createInputStream
java.io.IOException
- If an IO problem occurs.PartSource.createInputStream()
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |