/** * this library currently only supports 256bit keys * * @return keySize - 1=128bit | 2=192bit | 3=256bit */ public byte getEncryptionStrength() throws IOException { return raFile.readByte( getExtraFieldOffset() + 8 ); }
/** * this library currently only supports 256bit keys * * @return keySize - 1=128bit | 2=192bit | 3=256bit */ public byte getEncryptionStrength() throws IOException { return raFile.readByte( getExtraFieldOffset() + 8 ); }
@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(); }
@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(); }
this.actualCompressionMethod = raFile.readShort( getExtraFieldOffset() + 9 ); this.localHeaderSize = 30 + getExtraFieldLength() + getFileNameLength();
this.actualCompressionMethod = raFile.readShort( getExtraFieldOffset() + 9 ); this.localHeaderSize = 30 + getExtraFieldLength() + getFileNameLength();