Package org.supercsv.comment
Class CommentStartsWith
java.lang.Object
org.supercsv.comment.CommentStartsWith
- All Implemented Interfaces:
CommentMatcher
CommentMatcher that matches lines that begin with a specified String.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCommentStartsWith
(String value) Constructs a new CommentStartsWith comment matcher. -
Method Summary
-
Field Details
-
value
-
-
Constructor Details
-
CommentStartsWith
Constructs a new CommentStartsWith comment matcher.- Parameters:
value
- the String a line must start with to be a comment- Throws:
NullPointerException
- if value is nullIllegalArgumentException
- if value is empty
-
-
Method Details
-
isComment
Determines whether a line of CSV is a comment.- Specified by:
isComment
in interfaceCommentMatcher
- Parameters:
line
- the raw line of CSV- Returns:
- true if it's a comment, otherwise false
-