[jdom-interest] Help for one question.

Nagulapalli, Srinivas Srinivas_Nagulapalli at CINFIN.com
Mon Jul 16 13:02:00 PDT 2001


Renu,
 Do you know whether read is throwing exception or write?
 On "File" you can check whether the file is writeable by using "boolean
canWrite()" method.
 Check if canWrite() indeed returns true, and if not, you may not have
access to write it.
 My 0.02 cents.
 -Srini


-----Original Message-----
From: rgulati at cya.com [mailto:rgulati at cya.com]
Sent: Monday, July 16, 2001 3:51 PM
To: jdom-interest at jdom.org
Subject: [jdom-interest] Help for one question.




Hi,
     again its me. One question about reading and writting. I am reading
from
file that doesnot exist it gives me fienotfound exception that is ok. but in
the
mean time if i say write to file which is a new file than also it;s giving
Exception at  XMLOutputter.output. i have one catch for read and one for
write.
Single works fine. But together i get exception.Any clue.
Thanks
Renu Gulati


_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com



More information about the jdom-interest mailing list