1 28 package org.jruby.runtime; 29 30 import java.io.IOException ; 31 import org.jruby.Ruby; 32 import org.jruby.RubyClass; 33 import org.jruby.runtime.marshal.MarshalStream; 34 import org.jruby.runtime.marshal.UnmarshalStream; 35 36 40 public interface ObjectMarshal { 41 void marshalTo(Ruby runtime, Object obj, RubyClass type, MarshalStream marshalStream) throws IOException ; 42 Object unmarshalFrom(Ruby runtime, RubyClass type, UnmarshalStream unmarshalStream) throws IOException ; 43 } 44 | Popular Tags |