public class HeaderMatcher extends Object
Matches headers.
Usage:
read(Reader)
contentmatches(Pattern)
against filtered contentNote: use only from a single thread.
Constructor and Description |
---|
HeaderMatcher(org.apache.rat.header.CharFilter filter,
int capacity) |
HeaderMatcher(org.apache.rat.header.CharFilter filter,
int capacity,
HeaderBean[] headers) |
public HeaderMatcher(org.apache.rat.header.CharFilter filter, int capacity)
public HeaderMatcher(org.apache.rat.header.CharFilter filter, int capacity, HeaderBean[] headers)
public void read(Reader reader) throws IOException
IOException
public boolean matches(Pattern pattern)
Seeks a match in the last headers read.
Note that this pattern must not contain filtered characters.
pattern
- Pattern
to matchread(Reader)
has not been
calledpublic int lines()
Copyright © 2006–2016 Apache Software Foundation. All rights reserved.