< prev index next >
src/java.logging/share/classes/java/util/logging/LogRecord.java
Print this page
@@ -597,10 +597,14 @@
* then -1 is written. If there is a parameter array (possible of zero
* length) then the array length is written as an integer, followed
* by String values for each parameter. If a parameter is null, then
* a null String is written. Otherwise the output of Object.toString()
* is written.
+ *
+ * @param out the {@code ObjectOutputStream} to write to
+ *
+ * @throws IOException if I/O errors occur
*/
@Serial
private void writeObject(ObjectOutputStream out) throws IOException {
// We have to write serialized fields first.
ObjectOutputStream.PutField pf = out.putFields();
@@ -645,10 +649,17 @@
* <li>Otherwise, when only {@code threadID} is
* present, {@code longThreadID} is initialized with the value of
* {@code threadID} which may be anything between {@code Integer.MIN_VALUE}
* and {Integer.MAX_VALUE}.
* </ul>
+ * See {@code writeObject} for a description of the serial form.
+ *
+ * @param in the {@code ObjectInputStream} to read from
+ *
+ * @throws ClassNotFoundException if the class of a serialized object
+ * could not be found.
+ * @throws IOException if an I/O error occurs.
*/
@Serial
private void readObject(ObjectInputStream in)
throws IOException, ClassNotFoundException {
// We have to read serialized fields first.
< prev index next >