示例#1
0
  /**
   * Overwrite clone.
   *
   * @return a cloned copy of this ZipEntry
   * @since 1.1
   */
  public Object clone() {
    ZipEntry e = (ZipEntry) super.clone();

    e.setInternalAttributes(getInternalAttributes());
    e.setExternalAttributes(getExternalAttributes());
    e.setExtraFields(getExtraFields(true));
    return e;
  }
示例#2
0
 /**
  * Creates a new zip entry with fields taken from the specified zip entry.
  *
  * @param entry the entry to get fields from
  * @throws ZipException on error
  * @since 1.1
  */
 public ZipEntry(ZipEntry entry) throws ZipException {
   this((java.util.zip.ZipEntry) entry);
   setInternalAttributes(entry.getInternalAttributes());
   setExternalAttributes(entry.getExternalAttributes());
   setExtraFields(entry.getExtraFields(true));
 }