public static void closeQuietly ( XMLStreamReader reader ) { if ( reader != null ) { try { reader . close ( ) ; } catch ( XMLStreamException e ) { logger . warn ( "Error while closing" , e ) ; } } }
Closes the given reader without throwing an exception on failure . Instead a warning will be logged .