1 18 package org.apache.activemq.wireformat; 19 20 import java.io.DataInput ; 21 import java.io.DataOutput ; 22 import java.io.IOException ; 23 24 import org.apache.activemq.util.ByteSequence; 25 26 27 33 public interface WireFormat { 34 35 38 ByteSequence marshal(Object command) throws IOException ; 39 40 43 Object unmarshal(ByteSequence packet) throws IOException ; 44 45 48 void marshal(Object command, DataOutput out) throws IOException ; 49 50 53 Object unmarshal(DataInput in) throws IOException ; 54 55 58 public void setVersion(int version); 59 60 63 public int getVersion(); 64 65 } 66 | Popular Tags |