Skip to content

Commit

Permalink
hocon: Allow to set the comment prefix in HoconWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
TheElectronWill committed Apr 18, 2017
1 parent 486b983 commit 42a04bb
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,4 +270,14 @@ public HoconWriter setKeyValueSeparator(String separatorString) {
this.kvSeparator = separatorString.toCharArray();
return this;
}

public HoconWriter setCommentPrefix(CommentStyle commentPrefixStyle) {
this.commentPrefix = commentPrefixStyle.chars;
return this;
}

public HoconWriter setCommentPrefix(String commentPrefixString) {
this.commentPrefix = commentPrefixString.toCharArray();
return this;
}
}

0 comments on commit 42a04bb

Please sign in to comment.