| 1 33 34 package com.icesoft.faces.component.inputfile; 35 36 public class FileInfo { 37 38 39 private long size = 0; 40 private String fileName = null; 41 private String contentType = null; 42 private String physicalPath = null; 43 private int percent = 0; 44 private Exception exception = null; 45 46 public String getContentType() { 47 return contentType; 48 } 49 50 public void setContentType(String contentType) { 51 this.contentType = contentType; 52 } 53 54 public String getFileName() { 55 return fileName; 56 } 57 58 public void setFileName(String fileName) { 59 this.fileName = fileName; 60 } 61 62 public String getPhysicalPath() { 63 return physicalPath; 64 } 65 66 public void setPhysicalPath(String path) { 67 this.physicalPath = path; 68 } 69 70 public FileInfo() { 71 super(); 72 } 73 74 public long getSize() { 75 return size; 76 } 77 78 public void setSize(long size) { 79 this.size = size; 80 } 81 82 public int getPercent() { 83 return percent; 84 } 85 86 public void setPercent(int percent) { 87 this.percent = percent; 88 } 89 90 public Exception getException() { 91 return exception; 92 } 93 94 public void setException(Exception exception) { 95 this.exception = exception; 96 } 97 98 void reset() { 99 size = 0; 100 fileName = null; 101 contentType = null; 102 physicalPath = null; 103 percent = 0; 104 exception = null; 105 } 106 } 107 | Popular Tags |