Code example for ObjectOutputStream

Methods: writeDouble

  public void writeObject(final Object o, final ObjectOutputStream out)
      throws IOException 
    final Dimension2D dim = (Dimension2D) o;
   * Reads the object from the object input stream. This read the width and height and constructs a new FloatDimension 
   * object. 
   * @param in the object input stream from where to read the serialized data. 
   * @return the generated object. 
   * @throws IOException            if reading the stream failed. 
   * @throws ClassNotFoundException if serialized object class cannot be found. 
  public Object readObject(final ObjectInputStream in)
      throws IOException, ClassNotFoundException