fr.ifremer.isisfish.logging.io
Class LineReaderUtil.PatternLineReader
java.lang.Object
fr.ifremer.isisfish.logging.io.LineReader
fr.ifremer.isisfish.logging.io.LineReaderUtil.PatternLineReader
- Enclosing class:
- LineReaderUtil
public static class LineReaderUtil.PatternLineReader
- extends LineReader
a LineReader to keep only lines that match a regex pattern.
- Author:
- chemit
|
Field Summary |
protected java.util.regex.Pattern |
pattern
|
|
Method Summary |
boolean |
match(java.lang.String line)
Matcher of line for this reader. |
java.lang.String |
toString()
|
| Methods inherited from class fr.ifremer.isisfish.logging.io.LineReader |
close, ensureOpen, finalize, getFile, getId, getNbLines, getOffsetReader, getParent, isOpen, isUpToDate, open, readLine, readLine, readLine2, readLine2, setId, update |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
pattern
protected java.util.regex.Pattern pattern
LineReaderUtil.PatternLineReader
public LineReaderUtil.PatternLineReader(java.io.File file,
OffsetReader offsetReader,
java.lang.String level,
int flags)
LineReaderUtil.PatternLineReader
public LineReaderUtil.PatternLineReader(LineReader parent,
OffsetReader offsetReader,
java.lang.String level,
int flags)
match
public boolean match(java.lang.String line)
- Description copied from class:
LineReader
- Matcher of line for this reader.
- Overrides:
match in class LineReader
- Parameters:
line - the line to be accepted by this line reader
- Returns:
true if the line must be used,false
otherwise
toString
public java.lang.String toString()
- Overrides:
toString in class LineReader
Copyright © 1999-2010 CodeLutin. All Rights Reserved.