1 13 package info.magnolia.exchange; 14 15 import java.io.InputStream ; 16 import java.util.Calendar ; 17 18 19 22 public interface PacketBody { 23 24 38 void setType(int type); 39 40 53 int getType(); 54 55 58 void setLength(long size); 59 60 63 long getLength(); 64 65 71 void setBody(String data) throws PacketIOException; 72 73 79 void setBody(InputStream data) throws PacketIOException; 80 81 87 void setBody(Long data) throws PacketIOException; 88 89 95 void setBody(Double data) throws PacketIOException; 96 97 103 void setBody(Calendar data) throws PacketIOException; 104 105 111 void setBody(Boolean data) throws PacketIOException; 112 113 119 void setBody(Object data) throws PacketIOException; 120 121 126 String toString(); 127 128 133 Object getObject(); 134 } 135 | Popular Tags |