Top Description Fields Constructors Methods
org.jruby.runtime.marshal

public Class MarshalStream

extends FilterOutputStream
Class Inheritance
Annotations
@Deprecated
since:10.0
forRemoval:true
@SuppressWarnings:removal
Imports
java.io.FilterOutputStream, .IOException, .OutputStream, java.util.List, org.jcodings.Encoding, org.jcodings.specific.USASCIIEncoding, .UTF8Encoding, org.jruby.Ruby, .RubyArray, .RubyBasicObject, .RubyBignum, .RubyBoolean, .RubyClass, .RubyFixnum, .RubyFloat, .RubyHash, .RubyModule, .RubyRegexp, .RubyString, .RubyStruct, .RubySymbol, org.jruby.runtime.ClassIndex, .Constants, .ThreadContext, org.jruby.runtime.builtin.IRubyObject, .Variable, org.jruby.runtime.callsite.CacheEntry, org.jruby.util.ByteList, org.jruby.internal.runtime.methods.DynamicMethod, org.jruby.runtime.encoding.MarshalEncoding

Deprecated

for removal since 10.0.

Marshals objects into Ruby's binary marshal format.
Author
Anders

Field Summary

Modifier and TypeField and Description
private final MarshalCache
cache

References Deprecated MarshalCache is deprecated or references (maybe indirectly) at least one deprecated element.
private int
private final int
private final Ruby
Inherited from java.io.FilterOutputStream:
out

Constructor Summary

AccessConstructor and Description
public
MarshalStream(Ruby runtime, OutputStream out, int depthLimit)

Method Summary

Modifier and TypeMethod and Description
public void
dumpDefaultObjectHeader(RubyClass type)
Deprecated since 10.0.

public void
public void
dumpDefaultObjectHeader(char tp, RubyClass type)
Deprecated since 10.0.

public void
private RubyClass
dumpExtended(RubyClass type)

w_extended

public void
public void
public void
private void
public void
public static String
private List<Variable<Object>>
private boolean
private static boolean
public boolean
isTainted()
Deprecated

public boolean
isUntrusted()
Deprecated

public void
registerLinkTarget(IRubyObject newObject)
Deprecated since 10.0.

public void
public void
pack-priv static boolean
private static boolean
private void
public void
userMarshal(IRubyObject value, CacheEntry entry)
Deprecated since 10.0.

public void
public void
userMarshal(IRubyObject value)
Deprecated since 10.0.

public void
private void
public void
userNewMarshal(IRubyObject value, CacheEntry entry)
Deprecated since 10.0.

public void
public void
userNewMarshal(IRubyObject value)
Deprecated since 10.0.

public void
private void
private void
public void
writeByte(int value)

public void
writeDirectly(IRubyObject value)
Deprecated since 10.0.

public void
public void
public void
public void
writeInt(int value)

private void
public void
public void
public void
Inherited from java.io.FilterOutputStream:
closeflushwritewritewrite

Field Detail

cacheback to summary
private final MarshalCache cache

References Deprecated

MarshalCache is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

depthback to summary
private int depth
depthLimitback to summary
private final int depthLimit
runtimeback to summary
private final Ruby runtime

Constructor Detail

MarshalStreamback to summary
public MarshalStream(Ruby runtime, OutputStream out, int depthLimit) throws IOException

Method Detail

dumpDefaultObjectHeaderback to summary
public void dumpDefaultObjectHeader(RubyClass type) throws IOException

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
dumpDefaultObjectHeaderback to summary
public void dumpDefaultObjectHeader(ThreadContext context, RubyClass type) throws IOException
dumpDefaultObjectHeaderback to summary
public void dumpDefaultObjectHeader(char tp, RubyClass type) throws IOException

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
dumpDefaultObjectHeaderback to summary
public void dumpDefaultObjectHeader(ThreadContext context, char tp, RubyClass type) throws IOException
dumpExtendedback to summary
private RubyClass dumpExtended(RubyClass type) throws IOException

w_extended

dumpObjectback to summary
public void dumpObject(IRubyObject value) throws IOException
dumpSymbolback to summary
public void dumpSymbol(ByteList value) throws IOException
dumpVariablesback to summary
public void dumpVariables(List<Variable<Object>> vars) throws IOException
dumpVariablesSharedback to summary
private void dumpVariablesShared(List<Variable<Object>> vars) throws IOException
dumpVariablesWithEncodingback to summary
public void dumpVariablesWithEncoding(List<Variable<Object>> vars, IRubyObject obj) throws IOException
getPathFromClassback to summary
public static String getPathFromClass(RubyModule clazz)
getVariablesback to summary
private List<Variable<Object>> getVariables(IRubyObject value) throws IOException
hasSingletonMethodsback to summary
private boolean hasSingletonMethods(RubyClass type)
isMarshalFixnumback to summary
private static boolean isMarshalFixnum(ThreadContext context, RubyFixnum fixnum)
isTaintedback to summary
public boolean isTainted()

Deprecated

Annotations
@Deprecated
isUntrustedback to summary
public boolean isUntrusted()

Deprecated

Annotations
@Deprecated
registerLinkTargetback to summary
public void registerLinkTarget(IRubyObject newObject)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
registerLinkTargetback to summary
public void registerLinkTarget(ThreadContext context, IRubyObject newObject)
registerSymbolback to summary
public void registerSymbol(ByteList sym)
shouldBeRegisteredback to summary
pack-priv static boolean shouldBeRegistered(ThreadContext context, IRubyObject value)
shouldMarshalEncodingback to summary
private static boolean shouldMarshalEncoding(IRubyObject value)
userCommonback to summary
private void userCommon(ThreadContext context, IRubyObject value, CacheEntry entry) throws IOException
userMarshalback to summary
public void userMarshal(IRubyObject value, CacheEntry entry) throws IOException

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
userMarshalback to summary
public void userMarshal(ThreadContext context, IRubyObject value, CacheEntry entry) throws IOException
userMarshalback to summary
public void userMarshal(IRubyObject value) throws IOException

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
userMarshalback to summary
public void userMarshal(ThreadContext context, IRubyObject value) throws IOException
userNewCommonback to summary
private void userNewCommon(ThreadContext context, IRubyObject value, CacheEntry entry) throws IOException
userNewMarshalback to summary
public void userNewMarshal(IRubyObject value, CacheEntry entry) throws IOException

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
userNewMarshalback to summary
public void userNewMarshal(ThreadContext context, IRubyObject value, CacheEntry entry) throws IOException
userNewMarshalback to summary
public void userNewMarshal(IRubyObject value) throws IOException

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
userNewMarshalback to summary
public void userNewMarshal(ThreadContext context, IRubyObject value) throws IOException
writeAndRegisterback to summary
private void writeAndRegister(IRubyObject value) throws IOException
writeAndRegisterSymbolback to summary
private void writeAndRegisterSymbol(ByteList sym) throws IOException
writeByteback to summary
public void writeByte(int value) throws IOException
writeDirectlyback to summary
public void writeDirectly(IRubyObject value) throws IOException

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
writeDirectlyback to summary
public void writeDirectly(ThreadContext context, IRubyObject value) throws IOException
writeEncodingback to summary
public void writeEncoding(Encoding encoding) throws IOException
writeEncodingback to summary
public void writeEncoding(ThreadContext context, Encoding encoding) throws IOException
writeIntback to summary
public void writeInt(int value) throws IOException
writeObjectDataback to summary
private void writeObjectData(ThreadContext context, IRubyObject value) throws IOException
writeStringback to summary
public void writeString(String value) throws IOException
writeStringback to summary
public void writeString(ByteList value) throws IOException
writeUserClassback to summary
public void writeUserClass(IRubyObject obj, RubyClass type) throws IOException