public Configuration create ( File file ) { try { Configuration configuration ; InputStream stream = new BufferedInputStream ( new FileInputStream ( file ) ) ; try { configuration = create ( stream ) ; } finally { stream . close ( ) ; } return configuration ; } catch ( IOException e ) { throw new TextProcessorFactoryException ( e ) ; } }
Create the bb - code processor from file with XML - configuration .