Use fileInputStream and fileOuptuStream. These read and write, respectivly,
in ASCII.
Then you can use:
/* create a URL we would like to read/write.
URL sourceURL = new URL( "http://www.domain.com/");
// Get a character input stream for the URL
BufferedReader in = new BufferedReader(
new InputStreamReader(
sourceURL.openStream()));
J.D.M.
CipherStream Systems
email: [EMAIL PROTECTED]
web: www.cipherstream.com
-----------------------------------
Secure E-Business Is Our Business
-----------------------------------
----- Original Message -----
From: Bill Rosenberg <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 04, 1999 12:21 PM
Subject: Serializing HTML Data
> I am trying to avoid using hidden variables in my HTML pages to save
> state of my servlets. I know I can use the HTTP session to store this,
> but my client wants to avoid this overhead. I thought about taking a
> class and serializing the data into ASCII and storing that into one
> hidden variable instead of many. Can someone lend some assistance in how
> to serialize data in Ascii and then unserialize this Ascii data back
> into a Java class. I tried using 'URLEncoder.encode' and
> 'URLEncoder.decode' with no luck. Thanks in advance.
>
> Bill Rosenberg
> [EMAIL PROTECTED]
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html