Skip to content

Commit

Permalink
8155902: DataOuputStream should clarify that it might write primitive…
Browse files Browse the repository at this point in the history
… types as multiple byte groups

Reviewed-by: alanb, djelinski, lancea, rriggs
  • Loading branch information
Brian Burkhalter committed Jul 12, 2023
1 parent f82c818 commit ed9337e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/java.base/share/classes/java/io/DataOutputStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
/**
* A data output stream lets an application write primitive Java data
* types to an output stream in a portable way. An application can
* then use a data input stream to read the data back in.
* then use a data input stream to read the data back in. A data output
* stream wraps another output stream and delegates writing bytes to the
* write methods of that output stream. Writing data consisting of more than
* a single byte may cause several writes to the underlying output stream.
* <p>
* A DataOutputStream is not safe for use by multiple concurrent
* threads. If a DataOutputStream is to be used by more than one
Expand Down

1 comment on commit ed9337e

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.