public Activation getIronJacamarMetaData ( File root ) throws Exception { Activation result = null ; File metadataFile = new File ( root , "/META-INF/ironjacamar.xml" ) ; if ( metadataFile . exists ( ) ) { InputStream input = null ; String url = metadataFile . getAbsolutePath ( ) ; try { long start = System . currentTimeMillis ( ) ; input = new FileInputStream ( metadataFile ) ; XMLStreamReader xsr = XMLInputFactory . newInstance ( ) . createXMLStreamReader ( input ) ; result = ( new IronJacamarParser ( ) ) . parse ( xsr ) ; log . debugf ( "Total parse for %s took %d ms" , url , ( System . currentTimeMillis ( ) - start ) ) ; } catch ( Exception e ) { log . parsingErrorIronJacamarXml ( url , e ) ; throw e ; } finally { if ( input != null ) input . close ( ) ; } } return result ; }
Get the IronJacamar specific metadata