Package org.apache.rat.header
Class HeaderMatcher
java.lang.Object
org.apache.rat.header.HeaderMatcher
Deprecated.
Matches headers.
Usage:
read(Reader)
contentmatches(Pattern)
against filtered content
Note: use only from a single thread.
-
Constructor Summary
ConstructorsConstructorDescriptionHeaderMatcher
(org.apache.rat.header.CharFilter filter, int capacity) Deprecated.HeaderMatcher
(org.apache.rat.header.CharFilter filter, int capacity, HeaderBean[] headers) Deprecated. -
Method Summary
-
Constructor Details
-
HeaderMatcher
public HeaderMatcher(org.apache.rat.header.CharFilter filter, int capacity) Deprecated. -
HeaderMatcher
Deprecated.
-
-
Method Details
-
read
Deprecated.- Throws:
IOException
-
matches
Deprecated.Seeks a match in the last headers read.
Note that this pattern must not contain filtered characters.
- Parameters:
pattern
-Pattern
to match- Returns:
- true if the pattern matches,
false otherwise or if
read(Reader)
has not been called
-
lines
public int lines()Deprecated.Number of lines read.- Returns:
- the number of lines in the file or -1 if the file has more lines than were read
-