Skip to content

Commit 9311359

Browse files
authored
Add missing Javadoc. (#1697)
JAVA-5816
1 parent 681a437 commit 9311359

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bson/src/main/org/bson/io/OutputBuffer.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,14 @@ public void writeLong(final long value) {
197197
writeInt64(value);
198198
}
199199

200+
/**
201+
* Writes the characters of a string to the buffer as UTF-8 bytes.
202+
*
203+
* @param str the string to write.
204+
* @param checkForNullCharacters if true, check for and disallow null characters in the string.
205+
* @return the total number of bytes written.
206+
* @throws BsonSerializationException if checkForNullCharacters is true and the string contains a null character.
207+
*/
200208
protected int writeCharacters(final String str, final boolean checkForNullCharacters) {
201209
int len = str.length();
202210
int total = 0;

0 commit comments

Comments
 (0)