org.jruby.runtime.marshal
Class MarshalStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended byorg.jruby.runtime.marshal.MarshalStream

public class MarshalStream
extends java.io.FilterOutputStream

Marshals objects into Ruby's binary marshal format.

Author:
Anders $Revision: 1.3 $

Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
MarshalStream(Ruby ruby, java.io.OutputStream out, int depthLimit)
           
 
Method Summary
 void dumpInt(int value)
           
 void dumpObject(IRubyObject value)
           
 void dumpString(java.lang.String value)
           
 
Methods inherited from class java.io.FilterOutputStream
close, flush, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarshalStream

public MarshalStream(Ruby ruby,
                     java.io.OutputStream out,
                     int depthLimit)
              throws java.io.IOException
Method Detail

dumpObject

public void dumpObject(IRubyObject value)
                throws java.io.IOException
Throws:
java.io.IOException

dumpString

public void dumpString(java.lang.String value)
                throws java.io.IOException
Throws:
java.io.IOException

dumpInt

public void dumpInt(int value)
             throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.