| 程序包 | 说明 |
|---|---|
| cn.novelweb.tool.upload.fastdfs | |
| cn.novelweb.tool.upload.fastdfs.callback | |
| cn.novelweb.tool.upload.fastdfs.client | |
| cn.novelweb.tool.upload.fastdfs.model |
| 限定符和类型 | 方法和说明 |
|---|---|
static StorePath |
FastDfsClient.characterStringUploader(String str,
String ext)
字符串上传
获取默认的使用group
默认字符集UTF-8
|
static StorePath |
FastDfsClient.characterStringUploader(String group,
String str,
String ext,
String charsetName)
字符串上传
自定义组名称
|
static StorePath |
FastDfsClient.uploader(File file)
直接上传文件
获取默认的group
|
static StorePath |
FastDfsClient.uploader(InputStream stream,
long length,
String ext)
上传input流
获取默认的group
|
static StorePath |
FastDfsClient.uploader(String group,
File file)
直接上传文件
自定义组的名称
|
static StorePath |
FastDfsClient.uploader(String group,
InputStream stream,
long length,
String ext)
上传input流
自定义group名
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
FastDfsUploadCompletionHandler.complete(StorePath storePath)
异步上传完成后的回调方法
|
| 限定符和类型 | 方法和说明 |
|---|---|
StorePath |
DefaultStorageClient.uploadAppenderFile(String groupName,
InputStream inputStream,
long fileSize,
String fileExtName) |
StorePath |
StorageClient.uploadAppenderFile(String groupName,
InputStream inputStream,
long fileSize,
String fileExtName)
文件上传(支持断点续传)
|
StorePath |
DefaultStorageClient.uploadFile(InputStream inputStream,
long fileSize,
String fileExtName,
Set<MateData> metaDataSet) |
StorePath |
StorageClient.uploadFile(InputStream inputStream,
long fileSize,
String fileExtName,
Set<MateData> metaDataSet)
上传文件, 并设置文件元数据
|
StorePath |
DefaultStorageClient.uploadFile(String groupName,
InputStream inputStream,
long fileSize,
String fileExtName) |
StorePath |
StorageClient.uploadFile(String groupName,
InputStream inputStream,
long fileSize,
String fileExtName)
上传文件
文件上传后不可以修改,如果要修改则删除以后重新上传 |
StorePath |
DefaultStorageClient.uploadSlaveFile(String groupName,
String masterFilename,
InputStream inputStream,
long fileSize,
String prefixName,
String fileExtName) |
StorePath |
StorageClient.uploadSlaveFile(String groupName,
String masterFilename,
InputStream inputStream,
long fileSize,
String prefixName,
String fileExtName)
上传从文件
|
| 限定符和类型 | 方法和说明 |
|---|---|
static StorePath |
StorePath.parseFromUrl(String filePath)
从Url当中解析存储路径对象
|
Copyright © 2021. All rights reserved.