ZipOutputStream.putNextEntry

ZipOutputStream.putNextEntry

Class Overview | Class Members | This Package | All Packages

Syntax
public void putNextEntry( ZipEntry e ) throws IOException
Parameters
e
the ZIP entry to be written
Description
Begins writing a new ZIP file entry and positions the stream to the start of the entry data. Closes the current entry if still active. The default compression method will be used if no compression method was specified for the entry, and the current time will be used if the entry has no set modification time.

Exceptions
ZipException if a ZIP format error has occurred
Exceptions
IOException if an I/O error has occurred