1 6 7 package org.contineo.communication; 8 9 13 public class ContentPart { 14 15 18 private int messageId; 19 22 private String fileName; 23 26 private String mimeType; 27 30 private byte[] content; 31 32 33 public ContentPart() { 34 messageId = 0; 35 mimeType = ""; 36 content = null; 37 } 38 39 43 public int getMessageId() { 44 return messageId; 45 } 46 47 51 public String getFileName() { 52 return fileName; 53 } 54 55 59 public String getMimeType() { 60 return mimeType; 61 } 62 63 67 public byte[] getContent() { 68 return content; 69 } 70 71 75 public void setMessageId(int id) { 76 messageId = id; 77 } 78 79 83 public void setFileName(String fname) { 84 fileName = fname; 85 } 86 87 91 public void setMimeType(String type) { 92 mimeType = type; 93 } 94 95 99 public void setContent(byte[] cntnt) { 100 content = cntnt; 101 } 102 103 104 public long getContentSize() { 105 return content.length; 106 } 107 } | Popular Tags |