?? attachment.java
字號:
package fengyun.Fastmail.beans;
import java.util.Vector;
/**
* 附件信息
* @author fengyun
* @version 1.00
*/
public class Attachment{
private int size = 0; //附件大小
private String filename = null; //附件文件名
private String FullFileName = null; //文件絕對路徑
private String tmpFullFileName = null; //附件文件臨時路徑
private String ContentType = null; //附件文件類型
private boolean isAttach = false; //This attachment is or is not been attached
private boolean isUpload = false; //是否上載的附件
/**@return 附件大小*/
public int getSize() { return size; }
/**@return 附件文件名*/
public String getFileName() { return filename; }
/**@return 附件文件絕對路徑*/
public String getFullName() { return FullFileName;}
/**@return 臨時文件的絕對路徑*/
public String getTempAbsolute() { return tmpFullFileName; }
/**@return 是否已被粘貼*/
public boolean isAttached() { return isAttach;}
/**@return 是否已被粘貼*/
public boolean isUpload() { return isUpload;}
/**@return 附件類型*/
public String getContentType() { return ContentType; }
/**
* 設置大小
* @param size 大小
*/
public void setSize(int size) { this.size = size ;}
/**
* 設置文件名
*/
public void setFileName(String filename) { this.filename = filename; }
/**
* 設置文件絕對路徑
*/
public void setFullName(String filepath) { this.FullFileName = filepath;}
/**
* 設置臨時文件絕對路徑
*/
public void setTempAbsolute(String tmpFullFileName) { this.tmpFullFileName = tmpFullFileName; }
/**
* 設置是否粘貼
*/
public void setAttached(boolean attached) { this.isAttach = attached; }
/**
* 設置附件類型
*/
public void setContentType(String contenttype) { this.ContentType = contenttype; }
/**
* 設置是否上載的
*/
public void setUpload(boolean upload) {
isUpload = upload;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -