1 22 23 package org.xquark.servlet.util; 24 25 public class FileEntry 26 { 27 String filename; 28 String contentType; 29 String content; 30 31 public FileEntry(String filename, String contentType, String content) 32 { 33 this.filename = filename; 34 this.contentType = contentType; 35 this.content = content; 36 } 37 38 39 public String getFilename() 40 { 41 return this.filename; 42 } 43 44 45 public String getContentType() 46 { 47 return this.contentType; 48 } 49 50 51 public String getContent() 52 { 53 return this.content; 54 } 55 56 57 public String toString() 58 { 59 return "filename="+filename+"<p>\nmime="+contentType+"<p>\ncontent=<p>\n"+content; 60 } 61 } 62 | Popular Tags |