@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append( "fileName\t\t = " ).append( this.fileName ).append('\n'); try { sb.append( "uncompressedSize\t = " ).append( this.getUncompressedSize() ).append('\n'); sb.append( "compressedSize\t\t = " ).append( this.getCompressedSize() ).append('\n'); sb.append( "encryptionStrength\t = ").append( this.getEncryptionStrength() ).append('\n'); sb.append( "extraFieldOffset\t = " ).append( this.getExtraFieldOffset() ).append('\n'); sb.append( "extraFieldLength\t = " ).append( this.getExtraFieldLength() ).append('\n'); sb.append( "localHeaderOffset\t = " ).append( this.getLocalHeaderOffset() ).append('\n'); sb.append( "localHeaderSize\t\t = " ).append( this.getLocalHeaderSize() ).append('\n'); sb.append( "offset\t\t\t = ").append( this.getOffset() ).append('\n'); //sb.append().append().append('\n'); } catch( IOException ioEx ) { LOG.log(Level.WARNING, ioEx.getMessage(), ioEx); } return sb.toString(); }
/** * @return position within zip file where the actual data of the entry (file) starts * (after encryption salt + pw data) */ public int getOffset() { return (int)(getLocalHeaderOffset() + getLocalHeaderSize() + getCryptoHeaderLength()); }
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append( "fileName\t\t = " ).append( this.fileName ).append('\n'); try { sb.append( "uncompressedSize\t = " ).append( this.getUncompressedSize() ).append('\n'); sb.append( "compressedSize\t\t = " ).append( this.getCompressedSize() ).append('\n'); sb.append( "encryptionStrength\t = ").append( this.getEncryptionStrength() ).append('\n'); sb.append( "extraFieldOffset\t = " ).append( this.getExtraFieldOffset() ).append('\n'); sb.append( "extraFieldLength\t = " ).append( this.getExtraFieldLength() ).append('\n'); sb.append( "localHeaderOffset\t = " ).append( this.getLocalHeaderOffset() ).append('\n'); sb.append( "localHeaderSize\t\t = " ).append( this.getLocalHeaderSize() ).append('\n'); sb.append( "offset\t\t\t = ").append( this.getOffset() ).append('\n'); //sb.append().append().append('\n'); } catch( IOException ioEx ) { LOG.log(Level.WARNING, ioEx.getMessage(), ioEx); } return sb.toString(); }
/** * @return position within zip file where the actual data of the entry (file) starts * (after encryption salt + pw data) */ public int getOffset() { return (int)(getLocalHeaderOffset() + getLocalHeaderSize() + getCryptoHeaderLength()); }
zipEntry.setOffset( (int)(cde.getLocalHeaderOffset() + cde.getLocalHeaderSize()) + cde.getCryptoHeaderLength() ); zipEntry.initEncryptedEntry(); } else {
zipEntry.setOffset( (int)(cde.getLocalHeaderOffset() + cde.getLocalHeaderSize()) + cde.getCryptoHeaderLength() ); zipEntry.initEncryptedEntry(); } else {