com.jcraft.jzlib
Class GZIPOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by com.jcraft.jzlib.DeflaterOutputStream
              extended by com.jcraft.jzlib.GZIPOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class GZIPOutputStream
extends DeflaterOutputStream


Field Summary
 
Fields inherited from class com.jcraft.jzlib.DeflaterOutputStream
buffer, DEFAULT_BUFSIZE, deflater, mydeflater
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
GZIPOutputStream(OutputStream out)
           
GZIPOutputStream(OutputStream out, Deflater deflater, int size, boolean close_out)
           
GZIPOutputStream(OutputStream out, int size)
           
GZIPOutputStream(OutputStream out, int size, boolean close_out)
           
 
Method Summary
 long getCRC()
           
 void setComment(String comment)
           
 void setModifiedTime(long mtime)
           
 void setName(String name)
           
 void setOS(int os)
           
 
Methods inherited from class com.jcraft.jzlib.DeflaterOutputStream
close, deflate, finish, flush, getDeflater, getSyncFlush, getTotalIn, getTotalOut, setSyncFlush, write, write
 
Methods inherited from class java.io.FilterOutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GZIPOutputStream

public GZIPOutputStream(OutputStream out)
                 throws IOException
Throws:
IOException

GZIPOutputStream

public GZIPOutputStream(OutputStream out,
                        int size)
                 throws IOException
Throws:
IOException

GZIPOutputStream

public GZIPOutputStream(OutputStream out,
                        int size,
                        boolean close_out)
                 throws IOException
Throws:
IOException

GZIPOutputStream

public GZIPOutputStream(OutputStream out,
                        Deflater deflater,
                        int size,
                        boolean close_out)
                 throws IOException
Throws:
IOException
Method Detail

setModifiedTime

public void setModifiedTime(long mtime)
                     throws GZIPException
Throws:
GZIPException

setOS

public void setOS(int os)
           throws GZIPException
Throws:
GZIPException

setName

public void setName(String name)
             throws GZIPException
Throws:
GZIPException

setComment

public void setComment(String comment)
                throws GZIPException
Throws:
GZIPException

getCRC

public long getCRC()
            throws GZIPException
Throws:
GZIPException


Copyright © 2015 Perforce Software. All Rights Reserved.