8155902: DataOuputStream should clarify that it might write primitive types as multiple byte groups

Reviewed-by: alanb, djelinski, lancea, rriggs
This commit is contained in:
Brian Burkhalter 2023-07-12 18:14:56 +00:00
parent f82c8184b2
commit ed9337e665

@ -30,7 +30,10 @@ import jdk.internal.util.ByteArray;
/**
* 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