Package com.jcraft.jzlib
Class GZIPOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- com.jcraft.jzlib.DeflaterOutputStream
-
- com.jcraft.jzlib.GZIPOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
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
Constructors Constructor Description GZIPOutputStream(OutputStream out)
GZIPOutputStream(OutputStream out, int size)
GZIPOutputStream(OutputStream out, int size, boolean close_out)
GZIPOutputStream(OutputStream out, Deflater deflater, int size, boolean close_out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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
-
-