Package org.jruby
Class RubyMarshal
java.lang.Object
org.jruby.RubyMarshal
Marshal module
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RubyModulecreateMarshalModule(Ruby runtime) static IRubyObjectdump(IRubyObject recv, IRubyObject[] args, Block unusedBlock) Deprecated.static IRubyObjectdump(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block unusedBlock) private static booleandumpToStream(Ruby runtime, IRubyObject object, OutputStream rawOutput, int depthLimit) private static InputStreaminputStream(ThreadContext context, IRubyObject in) static IRubyObjectload(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block unusedBlock) private static OutputStreamoutputStream(ThreadContext context, IRubyObject out) private static voidsetBinmodeIfPossible(ThreadContext context, IRubyObject io) private static JavaSites.MarshalSitessites(ThreadContext context) static IRubyObjectundumpable(ThreadContext context, RubyObject self) Convenience method for objects that are undumpable.
-
Constructor Details
-
RubyMarshal
public RubyMarshal()
-
-
Method Details
-
createMarshalModule
-
dump
public static IRubyObject dump(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block unusedBlock) -
dump
Deprecated. -
load
public static IRubyObject load(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block unusedBlock) -
inputStream
-
outputStream
-
dumpToStream
private static boolean dumpToStream(Ruby runtime, IRubyObject object, OutputStream rawOutput, int depthLimit) throws IOException - Throws:
IOException
-
setBinmodeIfPossible
-
undumpable
Convenience method for objects that are undumpable. Always throws (a TypeError). -
sites
-