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