Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

Re: [jdom-interest] Can file for Document be deleted?

Elliotte Rusty Harold

2003-12-01

Replies:

At 10:57 AM +0800 12/2/03, ¡‘ˆš-ß wrote:
>Sometimes I use an encrypted(by FlowFish) xml file to construct a Document.
>Firstly I decrypt the file to a plain .xml file, then extract an instance of
>Document from the plain file. Generally, for the
>sake of security,the plain file
>should be deleted. I have done it this way and
>all does work. But I am not sure
>whether the Document instance will be somehow affected under some certain
>circumstance unknown to me.

It shouldn't be. JDOM does not do lazy
evaluation. Once the original file has been
parsed and a Document object built. the original
file from which it was built is no longer needed.
--

 Elliotte Rusty Harold
 elharo@(protected)
 Effective XML (Addison-Wesley, 2003)
 http://www.cafeconleche.org/books/effectivexml
 http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.