1 18 package org.apache.activemq.openwire; 19 20 import java.io.DataInput ; 21 import java.io.DataInputStream ; 22 import java.io.DataOutput ; 23 import java.io.DataOutputStream ; 24 import java.io.IOException ; 25 26 import org.apache.activemq.command.DataStructure; 27 28 public interface DataStreamMarshaller { 29 30 byte getDataStructureType(); 31 DataStructure createObject(); 32 33 int tightMarshal1(OpenWireFormat format, Object c, BooleanStream bs) throws IOException ; 34 void tightMarshal2(OpenWireFormat format, Object c, DataOutput ds, BooleanStream bs) throws IOException ; 35 void tightUnmarshal(OpenWireFormat format, Object data, DataInput dis, BooleanStream bs) throws IOException ; 36 37 void looseMarshal(OpenWireFormat format, Object c, DataOutput ds) throws IOException ; 38 void looseUnmarshal(OpenWireFormat format, Object data, DataInput dis) throws IOException ; 39 40 } 41 | Popular Tags |