|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.rat.header.HeaderMatcher
public class HeaderMatcher
Matches headers.
Usage:
read(Reader) contentmatches(Pattern) against filtered contentNote: use only from a single thread.
| Constructor Summary | |
|---|---|
HeaderMatcher(org.apache.rat.header.CharFilter filter,
int capacity)
|
|
HeaderMatcher(org.apache.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(org.apache.rat.header.CharFilter filter,
int capacity)
public HeaderMatcher(org.apache.rat.header.CharFilter filter,
int capacity,
HeaderBean[] headers)
| Method Detail |
|---|
public void read(java.io.Reader reader)
throws java.io.IOException
java.io.IOExceptionpublic 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(Reader) has not been
calledpublic int lines()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||