The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Java I/O

Posted by Sanjay Ambardar on January 08, 2001 at 2:30 AM

> It is junk for you not for Java. You are using ObjectOutputStream, so Java has to do a lot of work and it has to store all information about the class and the state of the object. Therefore , the so called junk for you is a useful thing for Java which is required when you read back the string using ObjectInputString. If you don't want to see that junk then please use output stream which wtires simple text.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us