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

Elliotte Rusty Harold elharo at metalab.unc.edu
Mon Dec 1 19:54:03 PST 2003


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 at metalab.unc.edu
   Effective XML (Addison-Wesley, 2003)
   http://www.cafeconleche.org/books/effectivexml
   http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA



More information about the jdom-interest mailing list