![JAR search and dependency download from the Maven repository](/logo.png)
net.ymate.platform.mvc.web.IUploadFileWrapper Maven / Gradle / Ivy
/*
* Copyright 2007-2107 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.ymate.platform.mvc.web;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
/**
*
* IUploadFileWrapper
*
*
* 上传文件包装器;
*
*
* @author 刘镇([email protected])
* @version 0.0.0
*
*
* 版本号 动作 修改人 修改时间
*
*
*
* 0.0.0
* 创建类
* 刘镇
* 2012-12-26下午1:24:51
*
*
*/
public interface IUploadFileWrapper {
/**
* @return 获取完整的文件名及路径
*/
public String getPath();
/**
* @return 获取文件名称
*/
public String getName();
/**
* @return 获取文件大小
*/
public long getSize();
/**
* @return 获取文件Content-Type
*/
public String getContentType();
/**
* 转移文件
*
* @param dest 目标
* @throws Exception
*/
public void transferTo(File dest) throws Exception;
/**
* 保存文件
*
* @param dest 目标
* @throws Exception
*/
public void writeTo(File dest) throws Exception;
/**
* 删除文件
*/
public void delete();
/**
* @return 获取文件输入流对象
* @throws IOException
*/
public InputStream getInputStream() throws IOException;
/**
* @return 获取文件输出流对象
* @throws IOException
*/
public OutputStream getOutputStream() throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy