1 62 package com.ivata.groupware.business.drive.file; 63 64 import java.io.IOException ; 65 import java.io.ObjectInputStream ; 66 import java.io.ObjectOutputStream ; 67 import java.io.Serializable ; 68 69 import com.ivata.mask.util.SerializedByteArray; 70 71 72 81 public class FileContentDO implements Serializable { 82 85 private String mimeType; 86 87 91 private SerializedByteArray content; 92 93 104 public FileContentDO(SerializedByteArray content, String mimeType) { 105 this.content = content; 106 this.mimeType = mimeType; 107 } 108 109 120 private void readObject(final ObjectInputStream ois) 121 throws ClassNotFoundException , IOException { 122 ois.defaultReadObject(); 123 } 124 125 134 private void writeObject(final ObjectOutputStream oos) throws IOException { 135 oos.defaultWriteObject(); 136 } 137 138 147 public final SerializedByteArray getContent() { 148 return content; 149 } 150 151 158 public final java.lang.String getMimeType() { 159 return mimeType; 160 } 161 } 162 | Popular Tags |