public class org.apache.camel.impl.SerializationDataFormat extends org.apache.camel.support.ServiceSupport implements org.apache.camel.spi.DataFormat, org.apache.camel.spi.DataFormatName
{
public void <init>()
{
org.apache.camel.impl.SerializationDataFormat v;
v := @this: org.apache.camel.impl.SerializationDataFormat;
specialinvoke v.<org.apache.camel.support.ServiceSupport: void <init>()>();
return;
}
public java.lang.String getDataFormatName()
{
org.apache.camel.impl.SerializationDataFormat v;
v := @this: org.apache.camel.impl.SerializationDataFormat;
return "serialization";
}
public void marshal(org.apache.camel.Exchange, java.lang.Object, java.io.OutputStream) throws java.lang.Exception
{
java.io.OutputStream v;
java.lang.Throwable v;
org.apache.camel.impl.SerializationDataFormat v;
java.lang.Object v, v;
org.apache.camel.Exchange v;
v := @this: org.apache.camel.impl.SerializationDataFormat;
v := @parameter: org.apache.camel.Exchange;
v := @parameter: java.lang.Object;
v := @parameter: java.io.OutputStream;
v = staticinvoke <org.apache.camel.util.ExchangeHelper: java.lang.Object convertToMandatoryType(org.apache.camel.Exchange,java.lang.Class,java.lang.Object)>(v, class "Ljava/io/ObjectOutput;", v);
label:
interfaceinvoke v.<java.io.ObjectOutput: void writeObject(java.lang.Object)>(v);
label:
interfaceinvoke v.<java.io.ObjectOutput: void flush()>();
goto label;
label:
v := @caughtexception;
interfaceinvoke v.<java.io.ObjectOutput: void flush()>();
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public java.lang.Object unmarshal(org.apache.camel.Exchange, java.io.InputStream) throws java.lang.Exception
{
java.lang.Throwable v;
org.apache.camel.impl.SerializationDataFormat v;
java.lang.Object v, v;
org.apache.camel.Exchange v;
java.io.InputStream v;
v := @this: org.apache.camel.impl.SerializationDataFormat;
v := @parameter: org.apache.camel.Exchange;
v := @parameter: java.io.InputStream;
v = staticinvoke <org.apache.camel.util.ExchangeHelper: java.lang.Object convertToMandatoryType(org.apache.camel.Exchange,java.lang.Class,java.lang.Object)>(v, class "Ljava/io/ObjectInput;", v);
label:
v = interfaceinvoke v.<java.io.ObjectInput: java.lang.Object readObject()>();
label:
return v;
label:
v := @caughtexception;
throw v;
catch java.lang.Throwable from label to label with label;
}
protected void doStart() throws java.lang.Exception
{
org.apache.camel.impl.SerializationDataFormat v;
v := @this: org.apache.camel.impl.SerializationDataFormat;
return;
}
protected void doStop() throws java.lang.Exception
{
org.apache.camel.impl.SerializationDataFormat v;
v := @this: org.apache.camel.impl.SerializationDataFormat;
return;
}
}