Class UnmarshalStream

java.lang.Object
java.io.InputStream
org.jruby.runtime.marshal.UnmarshalStream
All Implemented Interfaces:
Closeable, AutoCloseable

@Deprecated(since="10.0", forRemoval=true) public class UnmarshalStream extends InputStream
Deprecated, for removal: This API element is subject to removal in a future version.
Unmarshals objects from strings or streams in Ruby's marshal format.
Author:
Anders
  • Field Details

    • runtime

      protected final Ruby runtime
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

  • Method Details

    • unmarshalObject

      public IRubyObject unmarshalObject() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException
    • getModuleFromPath

      public static RubyModule getModuleFromPath(Ruby runtime, String path)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getClassFromPath

      public static RubyClass getClassFromPath(Ruby runtime, String path)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • ivar

      public void ivar(UnmarshalStream.MarshalState state, IRubyObject object, boolean[] hasEncoding) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException
    • entry

      public IRubyObject entry(IRubyObject value)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • prohibitIVar

      public void prohibitIVar(UnmarshalStream.MarshalState state, String label, String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • symbol

      public RubySymbol symbol() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException
    • unique

      public RubySymbol unique() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException
    • getRuntime

      public Ruby getRuntime()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • readUnsignedByte

      public int readUnsignedByte() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException
    • readSignedByte

      public byte readSignedByte() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException
    • unmarshalString

      public ByteList unmarshalString() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException
    • unmarshalInt

      public int unmarshalInt() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException
    • symbolToEncoding

      public org.jcodings.Encoding symbolToEncoding(RubySymbol symbol, IRubyObject value)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • read

      public int read() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      read in class InputStream
      Throws:
      IOException
    • defaultVariablesUnmarshal

      @Deprecated public void defaultVariablesUnmarshal(UnmarshalStream.MarshalState state, IRubyObject object) throws IOException
      Deprecated.
      Throws:
      IOException
    • unmarshalObject

      @Deprecated public IRubyObject unmarshalObject(boolean _callProc) throws IOException
      Deprecated.
      Throws:
      IOException