Package org.jruby.runtime
Interface ObjectMarshal<T>
public interface ObjectMarshal<T>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault void
marshalTo
(Ruby runtime, T obj, RubyClass type, MarshalStream marshalStream) Deprecated, for removal: This API element is subject to removal in a future version.void
marshalTo
(ThreadContext context, RubyOutputStream out, T obj, RubyClass type, MarshalDumper dumper) default T
unmarshalFrom
(Ruby runtime, RubyClass type, UnmarshalStream unmarshalStream) Deprecated, for removal: This API element is subject to removal in a future version.unmarshalFrom
(ThreadContext context, RubyInputStream in, RubyClass type, MarshalLoader loader)
-
Field Details
-
NOT_MARSHALABLE_MARSHAL
-
-
Method Details
-
marshalTo
void marshalTo(ThreadContext context, RubyOutputStream out, T obj, RubyClass type, MarshalDumper dumper) -
unmarshalFrom
-
marshalTo
@Deprecated(since="10.0", forRemoval=true) default void marshalTo(Ruby runtime, T obj, RubyClass type, MarshalStream marshalStream) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
unmarshalFrom
@Deprecated(since="10.0", forRemoval=true) default T unmarshalFrom(Ruby runtime, RubyClass type, UnmarshalStream unmarshalStream) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-