org.jruby.util
Class ZlibDeflate

java.lang.Object
  extended by org.jruby.util.ZlibDeflate

public class ZlibDeflate
extends java.lang.Object


Field Summary
static int BASE_SIZE
           
static int DEF_MEM_LEVEL
           
static int FINISH
           
static int FULL_FLUSH
           
static int MAX_MEM_LEVEL
           
static int MAX_WBITS
           
static int NO_FLUSH
           
static int SYNC_FLUSH
           
 
Constructor Summary
ZlibDeflate(IRubyObject caller, int level, int win_bits, int memlevel, int strategy)
           
 
Method Summary
 void append(org.jruby.util.ByteList obj)
           
 void append(IRubyObject obj)
           
 void close()
           
 IRubyObject deflate(org.jruby.util.ByteList str, int flush)
           
 IRubyObject finish()
           
 IRubyObject flush(int flush)
           
 java.util.zip.Deflater getDeflater()
           
 void params(int level, int strategy)
           
static IRubyObject s_deflate(IRubyObject caller, org.jruby.util.ByteList str, int level)
           
 IRubyObject set_dictionary(IRubyObject str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_SIZE

public static final int BASE_SIZE
See Also:
Constant Field Values

DEF_MEM_LEVEL

public static final int DEF_MEM_LEVEL
See Also:
Constant Field Values

MAX_MEM_LEVEL

public static final int MAX_MEM_LEVEL
See Also:
Constant Field Values

MAX_WBITS

public static final int MAX_WBITS
See Also:
Constant Field Values

NO_FLUSH

public static final int NO_FLUSH
See Also:
Constant Field Values

SYNC_FLUSH

public static final int SYNC_FLUSH
See Also:
Constant Field Values

FULL_FLUSH

public static final int FULL_FLUSH
See Also:
Constant Field Values

FINISH

public static final int FINISH
See Also:
Constant Field Values
Constructor Detail

ZlibDeflate

public ZlibDeflate(IRubyObject caller,
                   int level,
                   int win_bits,
                   int memlevel,
                   int strategy)
Method Detail

s_deflate

public static IRubyObject s_deflate(IRubyObject caller,
                                    org.jruby.util.ByteList str,
                                    int level)
                             throws java.util.zip.DataFormatException,
                                    java.io.IOException
Throws:
java.util.zip.DataFormatException
java.io.IOException

getDeflater

public java.util.zip.Deflater getDeflater()

append

public void append(IRubyObject obj)
            throws java.io.IOException,
                   java.io.UnsupportedEncodingException
Throws:
java.io.IOException
java.io.UnsupportedEncodingException

append

public void append(org.jruby.util.ByteList obj)
            throws java.io.IOException
Throws:
java.io.IOException

params

public void params(int level,
                   int strategy)

set_dictionary

public IRubyObject set_dictionary(IRubyObject str)
                           throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

flush

public IRubyObject flush(int flush)
                  throws java.io.IOException
Throws:
java.io.IOException

deflate

public IRubyObject deflate(org.jruby.util.ByteList str,
                           int flush)
                    throws java.io.IOException
Throws:
java.io.IOException

finish

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

close

public void close()


Copyright © 2002-2007 JRuby Team. All Rights Reserved.