为fastdfs工具类添加注释

This commit is contained in:
RenKaiGe-Office
2018-05-17 18:01:03 +08:00
parent 5ecb09dd0f
commit d825c96145
5 changed files with 45 additions and 32 deletions

View File

@@ -2,7 +2,7 @@ package com.nis.web.service.fdfs;
/**
* <p>Title: FastDFSFile.java</p>
* <p>Description: </p>
* <p>Description: file对象</p>
* <p>Company: IIE</p>
* @author rkg
* @date 2018年5月16日
@@ -18,11 +18,22 @@ public class FastDFSFile extends FileManagerConfig {
private String length;
private String author = FILE_DEFAULT_AUTHOR;
public FastDFSFile(byte[] content, String ext) {
this.content = content;
this.ext = ext;
}
/**
* 根据byte数组和文件后缀构建FastDFSFile对象
* @param content 文件转化为byte
* @param ext 文件后缀名
*/
// public FastDFSFile(byte[] content, String ext) {
// this.content = content;
// this.ext = ext;
// }
/**
* 根据byte数组和文件后缀构建FastDFSFile对象
* @param content 文件转化为byte
* @param name 文件名称
* @param ext 文件后缀名
*/
public FastDFSFile(byte[] content, String name, String ext) {
this.content = content;
this.name = name;