public class CommentMatches extends java.lang.Object implements CommentMatcher
Constructor and Description |
---|
CommentMatches(java.lang.String regex)
Constructs a new CommentMatches comment matcher.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isComment(java.lang.String line)
Determines whether a line of CSV is a comment.
|
public CommentMatches(java.lang.String regex)
regex
- the regular expression a line must match to be a commentjava.lang.NullPointerException
- if regex is nulljava.lang.IllegalArgumentException
- if regex is emptyjava.util.regex.PatternSyntaxException
- if the regex is invalidpublic boolean isComment(java.lang.String line)
isComment
in interface CommentMatcher
line
- the raw line of CSVCopyright © 2007-2014 Super CSV. All Rights Reserved.