public class SecretRewriter extends Object
Constructor and Description |
---|
SecretRewriter(File backupDirectory) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isIgnoredDir(File dir)
Decides if this directory is worth visiting or not.
|
boolean |
rewrite(File f,
File backup) |
int |
rewriteRecursive(File dir,
TaskListener listener)
Recursively scans and rewrites a directory.
|
public SecretRewriter(File backupDirectory) throws GeneralSecurityException
GeneralSecurityException
public boolean rewrite(File f, File backup) throws InvalidKeyException, IOException
backup
- if non-null, the original file will be copied here before rewriting.
if the rewrite doesn't happen, no copying.InvalidKeyException
IOException
public int rewriteRecursive(File dir, TaskListener listener) throws InvalidKeyException
InvalidKeyException
protected boolean isIgnoredDir(File dir)
Copyright © 2016. All rights reserved.