CommentMatcherpublic class CommentMatches extends Object implements CommentMatcher
| Constructor | Description |
|---|---|
CommentMatches(String regex) |
Constructs a new CommentMatches comment matcher.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
isComment(String line) |
Determines whether a line of CSV is a comment.
|
public CommentMatches(String regex)
regex - the regular expression a line must match to be a commentNullPointerException - if regex is nullIllegalArgumentException - if regex is emptyPatternSyntaxException - if the regex is invalidpublic boolean isComment(String line)
isComment in interface CommentMatcherline - the raw line of CSVCopyright © 2007–2018 Super CSV. All rights reserved.