本文整理汇总了Java中org.csource.fastdfs.FileInfo类的典型用法代码示例。如果您正苦于以下问题:Java FileInfo类的具体用法?Java FileInfo怎么用?Java FileInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FileInfo类属于org.csource.fastdfs包,在下文中一共展示了FileInfo类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: get_file_info
import org.csource.fastdfs.FileInfo; //导入依赖的package包/类
/**
* get file info decoded from the filename, fetch from the storage if necessary
* @param group_name the group name
* @param remote_filename the filename
* @return FileInfo object for success, return null for fail
*/
public FileInfo get_file_info(String group_name, String remote_filename) throws IOException, MyException
{
StorageClient storageClient = new StorageClient(trackerServer, storageServer);
return storageClient.get_file_info(group_name, remote_filename);
}
示例2: query_file_info
import org.csource.fastdfs.FileInfo; //导入依赖的package包/类
/**
* get file info from storage server
* @param group_name the group name of storage server
* @param remote_filename filename on storage server
* @return FileInfo object for success, return null for fail
*/
public FileInfo query_file_info(String group_name, String remote_filename) throws IOException, MyException
{
StorageClient storageClient = new StorageClient(trackerServer, storageServer);
return storageClient.query_file_info(group_name, remote_filename);
}
示例3: getFileInfo
import org.csource.fastdfs.FileInfo; //导入依赖的package包/类
/**
* 获取文件的信息
* @param groupName
* @param remoteFileName
* @return
* @
*/
public FileInfo getFileInfo(String groupName, String remoteFileName) ;