public class LogFilter extends Object
public LogFilter(File source, File destination, Pattern[] accept, Pattern[] remove)
Every single line from 'source' is matched against 'accept'. If some pattern matches the line, it goes to 'destination'.
If not, it is matched against 'remove'. If some pattern matches the line, it is discarded.
If no pattern matches, the line goes to 'destination'.
source
- destination
- accept
- remove
- public void filter() throws IOException
IOException
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.