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() |
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(org.jruby.util.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.IOExceptionpublic void dumpObject(IRubyObject value) throws java.io.IOException
java.io.IOExceptionpublic void registerLinkTarget(IRubyObject newObject)
public void registerSymbol(java.lang.String 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, DynamicMethod method) throws java.io.IOException
java.io.IOExceptionpublic void userNewMarshal(IRubyObject value) throws java.io.IOException
java.io.IOExceptionpublic void userMarshal(IRubyObject value, DynamicMethod method) 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(org.jruby.util.ByteList value)
throws java.io.IOException
java.io.IOExceptionpublic void dumpSymbol(java.lang.String 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()
public boolean isUntrusted()
Copyright © 2002-2009 JRuby Team. All Rights Reserved.