public class MarshalStream
extends java.io.FilterOutputStream
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SYMBOL_ENCODING_SPECIAL |
| Constructor and Description |
|---|
MarshalStream(Ruby runtime,
java.io.OutputStream out,
int depthLimit) |
public static final java.lang.String SYMBOL_ENCODING_SPECIAL
public MarshalStream(Ruby runtime, java.io.OutputStream out, int depthLimit) throws java.io.IOException
java.io.IOExceptionpublic void dumpObject(IRubyObject value) throws java.io.IOException
java.io.IOExceptionpublic void registerLinkTarget(IRubyObject newObject)
public void registerSymbol(ByteList sym)
public void writeDirectly(IRubyObject value) throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String getPathFromClass(RubyModule clazz)
public void userNewMarshal(IRubyObject value, CacheEntry entry) throws java.io.IOException
java.io.IOExceptionpublic void userNewMarshal(IRubyObject value) throws java.io.IOException
java.io.IOExceptionpublic void userMarshal(IRubyObject value, CacheEntry entry) throws java.io.IOException
java.io.IOExceptionpublic void userMarshal(IRubyObject value) throws java.io.IOException
java.io.IOExceptionpublic void writeUserClass(IRubyObject obj, RubyClass type) throws java.io.IOException
java.io.IOExceptionpublic void dumpVariablesWithEncoding(java.util.List<Variable<java.lang.Object>> vars, IRubyObject obj) throws java.io.IOException
java.io.IOExceptionpublic void dumpVariables(java.util.List<Variable<java.lang.Object>> vars) throws java.io.IOException
java.io.IOExceptionpublic void writeEncoding(org.jcodings.Encoding encoding)
throws java.io.IOException
java.io.IOExceptionpublic void dumpDefaultObjectHeader(RubyClass type) throws java.io.IOException
java.io.IOExceptionpublic void dumpDefaultObjectHeader(char tp,
RubyClass type)
throws java.io.IOException
java.io.IOExceptionpublic void writeString(java.lang.String value)
throws java.io.IOException
java.io.IOExceptionpublic void writeString(ByteList value) throws java.io.IOException
java.io.IOExceptionpublic void dumpSymbol(ByteList value) throws java.io.IOException
java.io.IOExceptionpublic void writeInt(int value)
throws java.io.IOException
java.io.IOExceptionpublic void writeByte(int value)
throws java.io.IOException
java.io.IOExceptionpublic boolean isTainted()
@Deprecated public boolean isUntrusted()
Copyright © 2001-2021 JRuby. All Rights Reserved.