public Entry getEntry(final String name) throws FileNotFoundException {Entry rval = null;if (name != null) {rval = _byname.get(name);}if (rval == null) {if(_byname.containsKey("Workbook")) {throw new IllegalArgumentException("The document is really a XLS file");} else if(_byname.containsKey("PowerPoint Document")) {throw new IllegalArgumentException("The document is really a PPT file");} else if(_byname.containsKey("VisioDocument")) {throw new IllegalArgumentException("The document is really a VSD file");}throw new FileNotFoundException("no such entry: \"" + name+ "\", had: " + _byname.keySet());}return rval;}

public Entry getEntry ( final String name ) throws FileNotFoundException { Entry rval = null ; if ( name != null ) { rval = _byname . get ( name ) ; } if ( rval == null ) { if ( _byname . containsKey ( "Workbook" ) ) { throw new IllegalArgumentException ( "The document is really a XLS file" ) ; } else if ( _byname . containsKey ( "PowerPoint Document" ) ) { throw new IllegalArgumentException ( "The document is really a PPT file" ) ; } else if ( _byname . containsKey ( "VisioDocument" ) ) { throw new IllegalArgumentException ( "The document is really a VSD file" ) ; } throw new FileNotFoundException ( "no such entry: \"" + name + "\", had: " + _byname . keySet ( ) ) ; } return rval ; }
public Entry GetEntry(String name){Entry rval = null;if (name != null){try{rval = (Entry)_byname[name];}catch (KeyNotFoundException){throw new FileNotFoundException("no such entry: \"" + name + "\"");}}if (rval == null){throw new FileNotFoundException("no such entry: \"" + name + "\"");}return rval;}
