src/java.desktop/share/classes/javax/print/DocFlavor.java
Print this page
@@ -608,10 +608,13 @@
return myStringValue;
}
/**
* Write the instance to a stream (ie serialize the object).
+ *
+ * @throws IOException if I/O errors occur while writing to the underlying
+ * stream
*/
private void writeObject(ObjectOutputStream s) throws IOException {
s.defaultWriteObject();
s.writeObject(myMimeType.getMimeType());
@@ -618,10 +621,14 @@
}
/**
* Reconstitute an instance from a stream (that is, deserialize it).
*
+ * @throws ClassNotFoundException if the class of a serialized object could
+ * not be found.
+ * @throws IOException if I/O errors occur while reading from the underlying
+ * stream
* @serialData
* The serialised form of a DocFlavor is the String naming the
* representation class followed by the String representing the canonical
* form of the mime type.
*/