gen_.start("phonebooks"); gen_.nl();
gen_.start("phonebook"); gen_.nl();
}
- catch (SAXException e)
- {
+ catch (SAXException e) {
throw new AssertionError("Invalid XML/SAX document generated.");
- } catch (UnsupportedEncodingException e) {
+ }
+ catch (UnsupportedEncodingException e) {
throw new AssertionError("Unsopported encoding iso-8859-1 ??");
}
+ finally {
+ Util.nothrowClose(os);
+ }
}
@Override
gen_.end(); gen_.nl();
gen_.end();
gen_.endDocument();
+ os_.close();
+ os_ = null;
}
catch (SAXException e)
{
throw new AssertionError("Invalid XML/SAX document generated.");
}
+ finally
+ {
+ Util.nothrowClose(os_);
+ }
}
}