public class ByteArrayPartSource extends Object implements PartSource
| 构造器和说明 |
|---|
ByteArrayPartSource(String fileName,
byte[] bytes)
Constructor for ByteArrayPartSource.
|
| 限定符和类型 | 方法和说明 |
|---|---|
InputStream |
createInputStream()
Gets a new InputStream for reading this source.
|
String |
getFileName()
Gets the name of the file this source represents.
|
long |
getLength()
Gets the number of bytes contained in this source.
|
public ByteArrayPartSource(String fileName, byte[] bytes)
fileName - the name of the file these bytes representbytes - the content of this partpublic long getLength()
PartSourcegetLength 在接口中 PartSourcePartSource.getLength()public String getFileName()
PartSourcegetFileName 在接口中 PartSourcePartSource.getFileName()public InputStream createInputStream() throws IOException
PartSourcecreateInputStream 在接口中 PartSourceIOException - if an error occurs when creating the InputStreamPartSource.createInputStream()Copyright © 2017. All rights reserved.