← 返回首页
ZipOutputStream (Java SE 26 & JDK 26)
JavaScript is disabled on your browser.
Contents  
  1. Description
  2. Field Summary
    1. Fields declared in class DeflaterOutputStream
    2. Fields declared in class FilterOutputStream
  3. Constructor Summary
  4. Method Summary
  5. Field Details
    1. STORED
    2. DEFLATED
    3. LOCSIG
    4. EXTSIG
    5. CENSIG
    6. ENDSIG
    7. LOCHDR
    8. EXTHDR
    9. CENHDR
    10. ENDHDR
    11. LOCVER
    12. LOCFLG
    13. LOCHOW
    14. LOCTIM
    15. LOCCRC
    16. LOCSIZ
    17. LOCLEN
    18. LOCNAM
    19. LOCEXT
    20. EXTCRC
    21. EXTSIZ
    22. EXTLEN
    23. CENVEM
    24. CENVER
    25. CENFLG
    26. CENHOW
    27. CENTIM
    28. CENCRC
    29. CENSIZ
    30. CENLEN
    31. CENNAM
    32. CENEXT
    33. CENCOM
    34. CENDSK
    35. CENATT
    36. CENATX
    37. CENOFF
    38. ENDSUB
    39. ENDTOT
    40. ENDSIZ
    41. ENDOFF
    42. ENDCOM
  6. Constructor Details
    1. ZipOutputStream(OutputStream)
    2. ZipOutputStream(OutputStream, Charset)
  7. Method Details
    1. setComment(String)
    2. setMethod(int)
    3. setLevel(int)
    4. putNextEntry(ZipEntry)
    5. closeEntry()
    6. write(byte[], int, int)
    7. finish()
    8. close()
Hide sidebar  Show sidebar

Class ZipOutputStream

All Implemented Interfaces: Closeable, Flushable, AutoCloseable Direct Known Subclasses: JarOutputStream
public class ZipOutputStream extends DeflaterOutputStream
This class implements an output stream filter for writing files in the ZIP file format. Includes support for both compressed and uncompressed entries.

Unless otherwise noted, passing a null argument to a constructor or method in this class will cause a NullPointerException to be thrown.

Since: 1.1

Scripting on this page tracks web page traffic, but does not change the content in any way.