static ZipEntry copy ( ZipEntry original , String newName ) { ZipEntry copy = new ZipEntry ( newName == null ? original . getName ( ) : newName ) ; if ( original . getCrc ( ) != - 1 ) { copy . setCrc ( original . getCrc ( ) ) ; } if ( original . getMethod ( ) != - 1 ) { copy . setMethod ( original . getMethod ( ) ) ; } if ( original . getSize ( ) >= 0 ) { copy . setSize ( original . getSize ( ) ) ; } if ( original . getExtra ( ) != null ) { copy . setExtra ( original . getExtra ( ) ) ; } copy . setComment ( original . getComment ( ) ) ; copy . setTime ( original . getTime ( ) ) ; return copy ; }
Copy entry with another name .