poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felipe Furtado Palma Dias" <palmad...@yahoo.com.br>
Subject Re: Serialize/unserialize an HSSFWorkbook.
Date Mon, 06 Dec 2004 22:25:23 GMT
My application is a JMS implementation, and I need to send a XLS message
through the Internet. Do you know a mode to do this?


----- Original Message ----- 
From: "Sharma, Siddharth" <Siddharth.Sharma@Staples.com>
To: "POI Users List" <poi-user@jakarta.apache.org>
Sent: Monday, December 06, 2004 5:22 PM
Subject: RE: Serialize/unserialize an HSSFWorkbook.


I don't think you can serialize/deserialize an HSSFWorkbook in the true
sense of object serialization, since it does not implement the marker
interface Serializable or Externalizable.
But depending on what you are trying to do, you may have workarounds.

For example, you could write the HSSFWorkbook to an OutputStream
(file/object) to persist it
HSSFWorkbook.write(outputStreamInstance)

And then read it in using an InputStream
new HSSFWorkbook(inputStreamInstance)

As I said earlier, this is not true object serialization, but then again I
do not know what you are trying to do.


-----Original Message-----
From: Felipe Palma Dias [mailto:palmadias@yahoo.com.br]
Sent: Monday, December 06, 2004 2:06 PM
To: poi-user@jakarta.apache.org
Subject: Serialize/unserialize an HSSFWorkbook.

A need serialize/unserialize an HSSFWorkbook object.
How can I do this?

Tks.

=====
------------------------------------------------------- 
Felipe F. Palma Dias
http://geocities.yahoo.com.br/palmadias/





_______________________________________________________
Yahoo! Mail - Agora com 250MB de espa├žo gratuito. Abra
uma conta agora! http://br.info.mail.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-user-help@jakarta.apache.org


Mime
View raw message