public void parse(InputStream stream,String name) throws HyphenationException {
  InputSource source=new InputSource(stream);
  source.setSystemId(name);
  try {
    parser.parse(source);
  }
 catch (  FileNotFoundException fnfe) {
    throw new HyphenationException("File not found: " + fnfe.getMessage());
  }
catch (  IOException ioe) {
    throw new HyphenationException(ioe.getMessage());
  }
catch (  SAXException e) {
    throw new HyphenationException(errMsg);
  }
}

public void parse ( InputStream stream , String name ) throws HyphenationException { InputSource source = new InputSource ( stream ) ; source . setSystemId ( name ) ; try { parser . parse ( source ) ; } catch ( FileNotFoundException fnfe ) { throw new HyphenationException ( "File not found: " + fnfe . getMessage ( ) ) ; } catch ( IOException ioe ) { throw new HyphenationException ( ioe . getMessage ( ) ) ; } catch ( SAXException e ) { throw new HyphenationException ( errMsg ) ; } }
parses a hyphenation pattern file .
