为fastdfs工具类添加注释
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user