程序包 cool.scx.ext.fss

类 FSSController


  • public class FSSController
    extends Object

    FSSController class.

    版本:
    0.3.6
    作者:
    scx567888
    • 构造器详细资料

      • FSSController

        public FSSController()
        构造函数
    • 方法详细资料

      • download

        public cool.scx.vo.Download download​(String fssObjectId)
                                      throws cool.scx.exception.HttpRequestException,
                                             SQLException
        通用下载资源方法 todo 优化性能
        参数:
        fssObjectId - a String object.
        返回:
        a Download object.
        抛出:
        cool.scx.exception.HttpRequestException - if any.
        SQLException - s
      • image

        public cool.scx.vo.Image image​(String fssObjectId,
                                       Integer width,
                                       Integer height,
                                       String type)
                                throws cool.scx.exception.HttpRequestException,
                                       SQLException
        展示图片
        参数:
        fssObjectId - id
        width - a Integer object.
        height - a Integer object.
        type - a String object
        返回:
        a Raw object.
        抛出:
        cool.scx.exception.HttpRequestException - if any.
        SQLException - s
      • raw

        public cool.scx.vo.Raw raw​(String fssObjectId)
                            throws cool.scx.exception.HttpRequestException,
                                   SQLException
        展示文件
        参数:
        fssObjectId - id
        返回:
        a Raw object.
        抛出:
        cool.scx.exception.HttpRequestException - if any.
        SQLException - s
      • upload

        public cool.scx.vo.Json upload​(String fileName,
                                       Long fileSize,
                                       String fileMD5,
                                       Integer chunkLength,
                                       Integer nowChunkIndex,
                                       cool.scx.bo.FileUpload fileData)
                                throws SQLException
        单个文件上传 和 分片文件上传
        参数:
        fileName - 文件名
        fileSize - 文件大小
        fileMD5 - 文件md5
        chunkLength - 分片总长度
        nowChunkIndex - 当前分片
        fileData - 文件内容
        返回:
        r
        抛出:
        SQLException - s
      • delete

        public cool.scx.vo.Json delete​(String fssObjectId)
                                throws SQLException

        deleteFile.

        参数:
        fssObjectId - a String object.
        返回:
        a Json object.
        抛出:
        SQLException - s
      • checkAnyFileExistsByThisMD5

        public cool.scx.vo.Json checkAnyFileExistsByThisMD5​(String fileName,
                                                            Long fileSize,
                                                            String fileMD5)
                                                     throws SQLException
        检查一下这个 服务器里有没有和这个 可以直接使用 此 md5 的文件
        参数:
        fileName - f
        fileSize - f
        fileMD5 - f
        返回:
        f
        抛出:
        SQLException - f