/** * * @return whether the archive is encrypted */ public boolean isEncrypted() { if (newMhd != null) { return newMhd.isEncrypted(); } else { throw new NullPointerException("mainheader is null"); } }
public void print(){ super.print(); StringBuilder str=new StringBuilder(); str.append("posav: "+getPosAv()); str.append("\nhighposav: "+getHighPosAv()); str.append("\nhasencversion: "+hasEncryptVersion()+(hasEncryptVersion()?getEncryptVersion():"")); str.append("\nhasarchcmt: "+hasArchCmt()); str.append("\nisEncrypted: "+isEncrypted()); str.append("\nisMultivolume: "+isMultiVolume()); str.append("\nisFirstvolume: "+isFirstVolume()); str.append("\nisSolid: "+isSolid()); str.append("\nisLocked: "+isLocked()); str.append("\nisProtected: "+isProtected()); str.append("\nisAV: "+isAV()); logger.info(str.toString()); }
headers.add(mainhead); this.newMhd = mainhead; if (newMhd.isEncrypted()) { throw new RarException( RarExceptionType.rarEncryptedException);