src/share/classes/javax/print/DocFlavor.java

Print this page

        

*** 608,627 **** --- 608,634 ---- return myStringValue; } /** * Write the instance to a stream (ie serialize the object). + * + * @exception IOException Thrown if there was an I/O error while creating + * the output stream */ private void writeObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject(); s.writeObject(myMimeType.getMimeType()); } /** * Reconstitute an instance from a stream (that is, deserialize it). * + * @exception ClassNotFoundException Thrown if there was an error finding + * the class + * @exception IOException Thrown if there was an I/O error while creating + * the input 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. */