|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrat.header.HeaderMatcher
public class HeaderMatcher
Matches headers.
Usage:
read(Reader)
contentmatches(Pattern)
against filtered contentNote: use only from a single thread.
Constructor Summary | |
---|---|
HeaderMatcher(rat.header.CharFilter filter,
int capacity)
|
|
HeaderMatcher(rat.header.CharFilter filter,
int capacity,
HeaderBean[] headers)
|
Method Summary | |
---|---|
int |
lines()
Number of lines read. |
boolean |
matches(java.util.regex.Pattern pattern)
Seeks a match in the last headers read. |
void |
read(java.io.Reader reader)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HeaderMatcher(rat.header.CharFilter filter, int capacity)
public HeaderMatcher(rat.header.CharFilter filter, int capacity, HeaderBean[] headers)
Method Detail |
---|
public void read(java.io.Reader reader) throws java.io.IOException
java.io.IOException
public boolean matches(java.util.regex.Pattern pattern)
Seeks a match in the last headers read.
Note that this pattern must not contain filtered characters.
pattern
- Pattern
to match
#read()
has not been
calledpublic int lines()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |