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