Top Fields Methods
org.jruby.runtime

public Interface ObjectMarshal<T>

Known Direct Implementers
org.jruby.ext.set.RubySet.SetMarshal
Imports
java.io.IOException, org.jruby.Ruby, .RubyClass, org.jruby.runtime.marshal.MarshalDumper, .MarshalLoader, org.jruby.util.io.RubyInputStream, .RubyOutputStream

Field Summary

Modifier and TypeField and Description
public static final ObjectMarshal<T>

Method Summary

Modifier and TypeMethod and Description
public void
marshalTo(ThreadContext context, RubyOutputStream out, T obj, RubyClass type, MarshalDumper dumper)

public default void
marshalTo(Ruby runtime, T obj, RubyClass type, MarshalStream marshalStream)
Deprecated for removal since 10.0.

public T
public default T
unmarshalFrom(Ruby runtime, RubyClass type, UnmarshalStream unmarshalStream)
Deprecated for removal since 10.0.

Field Detail

NOT_MARSHALABLE_MARSHALback to summary
public static final ObjectMarshal<T> NOT_MARSHALABLE_MARSHAL

Method Detail

marshalToback to summary
public void marshalTo(ThreadContext context, RubyOutputStream out, T obj, RubyClass type, MarshalDumper dumper)
marshalToback to summary
public default void marshalTo(Ruby runtime, T obj, RubyClass type, MarshalStream marshalStream) throws IOException

Deprecated

for removal since 10.0.

Annotations
@Deprecated
since:10.0
forRemoval:true
@SuppressWarnings:removal
unmarshalFromback to summary
public T unmarshalFrom(ThreadContext context, RubyInputStream in, RubyClass type, MarshalLoader loader)
unmarshalFromback to summary
public default T unmarshalFrom(Ruby runtime, RubyClass type, UnmarshalStream unmarshalStream) throws IOException

Deprecated

for removal since 10.0.

Annotations
@Deprecated
since:10.0
forRemoval:true
@SuppressWarnings:removal