|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.utils.LogFilter
public class LogFilter
Simple way how to filter your log files...
Constructor Summary | |
---|---|
LogFilter(java.io.File source,
java.io.File destination,
java.util.regex.Pattern[] accept,
java.util.regex.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 |
---|
public LogFilter(java.io.File source, java.io.File destination, java.util.regex.Pattern[] accept, java.util.regex.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
- Method Detail |
---|
public void filter() throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |