Skip to content

Commit

Permalink
[fix] StatsOutputStream: add string write function (apache#308) (apac…
Browse files Browse the repository at this point in the history
…he#23227)

Co-authored-by: Paul Gier <[email protected]>
  • Loading branch information
dlg99 and pgier authored Aug 26, 2024
1 parent a6029ad commit cd3519a
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ public SimpleTextOutputStream write(char c) {
return this;
}

public SimpleTextOutputStream write(String s) {
if (s == null) {
return this;
}

buffer.writeCharSequence(s, CharsetUtil.UTF_8);
return this;
}

public SimpleTextOutputStream write(CharSequence s) {
if (s == null) {
return this;
Expand Down

0 comments on commit cd3519a

Please sign in to comment.