cz.cuni.amis.utils
Class LogFilter

Package class diagram package LogFilter
java.lang.Object
  extended by cz.cuni.amis.utils.LogFilter

public class LogFilter
extends Object

Simple way how to filter your log files...


Constructor Summary
LogFilter(File source, File destination, Pattern[] accept, Pattern[] remove)
          Opens 'source', writes to 'destination'.
 
Method Summary
 void filter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFilter

public LogFilter(File source,
                 File destination,
                 Pattern[] accept,
                 Pattern[] remove)
Opens 'source', writes to 'destination'.

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'.

Parameters:
source -
destination -
accept -
remove -
Method Detail

filter

public void filter()
            throws IOException
Throws:
IOException


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.