The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001

Advertisement

Advertisement

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.

Message:

your junk , Java necessity

Posted by Kishori Sharan on January 07, 2001 at 11:42 PM

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.



Replies:

Sponsored Links



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