private void isToFile(String fileName, InputStream is){
OutputStream out = null;
try {
is.reset();
out = new FileOutputStream(new File(fileName));
byte buf[]=new byte[1024];
int len;
while((len=is.read(buf))>0)
out.write(buf,0,len);
out.close();
is.close();
} catch (IOException ex) {
this.myLog.errorException(ex);
Logger.getLogger(XmlManager.class.getName()).log(Level.SEVERE, null, ex);
} finally {
try {
out.close();
} catch (IOException ex) {
this.myLog.errorException(ex);
Logger.getLogger(XmlManager.class.getName()).log(Level.SEVERE, null, ex);
}
}
}