org.jruby.runtime.marshal
Class UnmarshalStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byorg.jruby.runtime.marshal.UnmarshalStream

public class UnmarshalStream
extends java.io.FilterInputStream

Unmarshals objects from strings or streams in Ruby's marsal format.

Author:
Anders $Revision: 1.4 $

Field Summary
protected  Ruby runtime
           
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
UnmarshalStream(Ruby runtime, java.io.InputStream in)
           
 
Method Summary
 Ruby getRuntime()
           
 byte readSignedByte()
           
 int readUnsignedByte()
           
 void registerLinkTarget(IRubyObject newObject)
           
 int unmarshalInt()
           
 IRubyObject unmarshalObject()
           
 java.lang.String unmarshalString()
           
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runtime

protected final Ruby runtime
Constructor Detail

UnmarshalStream

public UnmarshalStream(Ruby runtime,
                       java.io.InputStream in)
                throws java.io.IOException
Method Detail

unmarshalObject

public IRubyObject unmarshalObject()
                            throws java.io.IOException
Throws:
java.io.IOException

registerLinkTarget

public void registerLinkTarget(IRubyObject newObject)

getRuntime

public Ruby getRuntime()

readUnsignedByte

public int readUnsignedByte()
                     throws java.io.IOException
Throws:
java.io.IOException

readSignedByte

public byte readSignedByte()
                    throws java.io.IOException
Throws:
java.io.IOException

unmarshalString

public java.lang.String unmarshalString()
                                 throws java.io.IOException
Throws:
java.io.IOException

unmarshalInt

public int unmarshalInt()
                 throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.