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) |
Modifier and Type | Method and Description |
---|---|
void |
dumpDefaultObjectHeader(char tp,
RubyClass type) |
void |
dumpDefaultObjectHeader(RubyClass type) |
void |
dumpObject(IRubyObject value) |
void |
dumpSymbol(java.lang.String value) |
void |
dumpVariables(java.util.List<Variable<java.lang.Object>> vars) |
void |
dumpVariablesWithEncoding(java.util.List<Variable<java.lang.Object>> vars,
IRubyObject obj) |
static java.lang.String |
getPathFromClass(RubyModule clazz) |
boolean |
isTainted() |
boolean |
isUntrusted()
Deprecated.
|
void |
registerLinkTarget(IRubyObject newObject) |
void |
registerSymbol(java.lang.String sym) |
void |
userMarshal(IRubyObject value) |
void |
userMarshal(IRubyObject value,
DynamicMethod method) |
void |
userNewMarshal(IRubyObject value) |
void |
userNewMarshal(IRubyObject value,
DynamicMethod method) |
void |
writeByte(int value) |
void |
writeDirectly(IRubyObject value) |
void |
writeEncoding(org.jcodings.Encoding encoding) |
void |
writeInt(int value) |
void |
writeString(ByteList value) |
void |
writeString(java.lang.String value) |
void |
writeUserClass(IRubyObject obj,
RubyClass type) |
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.IOException
public void dumpObject(IRubyObject value) throws java.io.IOException
java.io.IOException
public void registerLinkTarget(IRubyObject newObject)
public void registerSymbol(java.lang.String sym)
public void writeDirectly(IRubyObject value) throws java.io.IOException
java.io.IOException
public static java.lang.String getPathFromClass(RubyModule clazz)
public void userNewMarshal(IRubyObject value, DynamicMethod method) throws java.io.IOException
java.io.IOException
public void userNewMarshal(IRubyObject value) throws java.io.IOException
java.io.IOException
public void userMarshal(IRubyObject value, DynamicMethod method) throws java.io.IOException
java.io.IOException
public void userMarshal(IRubyObject value) throws java.io.IOException
java.io.IOException
public void writeUserClass(IRubyObject obj, RubyClass type) throws java.io.IOException
java.io.IOException
public void dumpVariablesWithEncoding(java.util.List<Variable<java.lang.Object>> vars, IRubyObject obj) throws java.io.IOException
java.io.IOException
public void dumpVariables(java.util.List<Variable<java.lang.Object>> vars) throws java.io.IOException
java.io.IOException
public void writeEncoding(org.jcodings.Encoding encoding) throws java.io.IOException
java.io.IOException
public void dumpDefaultObjectHeader(RubyClass type) throws java.io.IOException
java.io.IOException
public void dumpDefaultObjectHeader(char tp, RubyClass type) throws java.io.IOException
java.io.IOException
public void writeString(java.lang.String value) throws java.io.IOException
java.io.IOException
public void writeString(ByteList value) throws java.io.IOException
java.io.IOException
public void dumpSymbol(java.lang.String value) throws java.io.IOException
java.io.IOException
public void writeInt(int value) throws java.io.IOException
java.io.IOException
public void writeByte(int value) throws java.io.IOException
java.io.IOException
public boolean isTainted()
@Deprecated public boolean isUntrusted()
Copyright © 2001-2018 JRuby. All Rights Reserved.