ipworkszip
Class JarOverwriteEvent
java.lang.Object
|
+--java.util.EventObject
|
+--ipworkszip.JarOverwriteEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class JarOverwriteEvent
- 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:
Jar
,
Jar.OverwriteEvent
,
Serialized Form
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 |
filename
public java.lang.String filename
overwrite
public boolean overwrite
Copyright (c) 2009 /n software inc. - All rights reserved.