Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
|
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 8th, 2006, 06:35 PM
Authorized User
 
Join Date: Jul 2006
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ironchef
Default writing a shape to a file

So i'm trying to make it so my program can write shapes to a file. of course, shapes aren't serializable, so I have to include and overridden writeObject() method to write the shae to the file. The code below isn't working, but i dont know why. Please help...

private void writeObject(ObjectOutputStream out) throws IOException {
  out.writeDouble(ellipse.width);
  out.writeDouble(ellipse.height);
}



IronChef - http://www.freewebs.com/cool_recipes
__________________
<b>IronChef</b> - http://www.freewebs.com/cool_recipes





Similar Threads
Thread Thread Starter Forum Replies Last Post
writing into a file in linux file system anboss XSLT 6 June 19th, 2008 01:56 PM
writing into xml file jerryjohn XML 1 August 18th, 2006 02:40 AM
Rotating shape in VBA (not center of shape) Piblon Excel VBA 3 April 13th, 2006 04:04 AM
writing to am xml file MOU Classic ASP XML 0 July 6th, 2005 07:38 AM
writing excel file in C doomurful C# 0 July 12th, 2004 08:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.