Class GZIPOutputStream
java.lang.Object
java.io.OutputStream
com.codename1.io.gzip.FilterOutputStream
com.codename1.io.gzip.DeflaterOutputStream
com.codename1.io.gzip.GZIPOutputStream
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields inherited from class DeflaterOutputStream
buffer, DEFAULT_BUFSIZE, deflater, mydeflaterModifier and TypeFieldDescriptionprotected byte[]protected static final intprotected final Deflaterprotected booleanFields inherited from class FilterOutputStream
out -
Constructor Summary
ConstructorsConstructorDescriptionGZIPOutputStream(OutputStream out, int size) GZIPOutputStream(OutputStream out, int size, boolean closeOut) GZIPOutputStream(OutputStream out, Deflater deflater, int size, boolean closeOut) -
Method Summary
Modifier and TypeMethodDescriptionlonggetCRC()voidsetComment(String comment) voidsetModifiedTime(long mtime) voidvoidsetOS(int os) Methods inherited from class DeflaterOutputStream
close, deflate, finish, flush, getDeflater, getSyncFlush, getTotalIn, getTotalOut, setSyncFlush, write, writeModifier and TypeMethodDescriptionvoidclose()Closes this output stream and releases any system resources associated with this stream.protected intdeflate(int flush) voidfinish()voidflush()Flushes this output stream and forces any buffered output bytes to be written out.booleanlonglongvoidsetSyncFlush(boolean syncFlush) voidwrite(byte[] b, int off, int len) Writes len bytes from the specified byte array starting at offset off to this output stream.voidwrite(int b) Writes the specified byte to this output stream.Methods inherited from class FilterOutputStream
writeModifier and TypeMethodDescriptionvoidwrite(byte[] b) Writes b.length bytes from the specified byte array to this output stream.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
Constructor Details
-
GZIPOutputStream
- Throws:
IOException
-
GZIPOutputStream
- Throws:
IOException
-
GZIPOutputStream
- Throws:
IOException
-
GZIPOutputStream
public GZIPOutputStream(OutputStream out, Deflater deflater, int size, boolean closeOut) throws IOException - Throws:
IOException
-
-
Method Details
-
setModifiedTime
- Throws:
GZIPException
-
setOS
- Throws:
GZIPException
-
setName
- Throws:
GZIPException
-
setComment
- Throws:
GZIPException
-
getCRC
- Throws:
GZIPException
-