IP*Works! ZIP V8

ipworkszip
Class ZipOverwriteEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--ipworkszip.ZipOverwriteEvent
All Implemented Interfaces:
java.io.Serializable

public class ZipOverwriteEvent
extends java.util.EventObject

Fired whenever a file exists and may be overwritten.

Overwrite is fired when a file is about to be overwritten, and would overwrite an existing file. The event is fired during both compression and decompression.

Filename contains the full name of the file, specified with its pathname.

Overwrite specifies whether or not the file will be overwritten. For Zip, Jar, and Tar, this is equal by default to the value of the OverwriteFiles property. For Gzip, this value defaults to true.

Either of the parameters may be changed when the event is fired. Changing the value of Overwrite will override the default behavior of the bean, and cause the file to be overwritten or not overwritten, depending on the value set. If Filename is changed, the value of Overwrite will be ignored, and the file will be written with the specified name. If a file of the new name also exists this file will be silently overwritten.

See Also:
Zip, Zip.OverwriteEvent, Serialized Form

Field Summary
 java.lang.String filename
           
 boolean overwrite
           
 
Fields inherited from class java.util.EventObject
source
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

filename

public java.lang.String filename

overwrite

public boolean overwrite

IP*Works! ZIP V8

Copyright (c) 2009 /n software inc. - All rights reserved.