// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
//
// Contact: phylosoft @ gmail . com
-// WWW: www.phylosoft.org/forester
+// WWW: https://sites.google.com/site/cmzmasek/home/software/forester
package org.forester.io.parsers.tol;
break;
}
}
+ try {
+ zip_file.close();
+ }
+ catch ( final Exception e ) {
+ // Ignore.
+ }
return reader;
}
final Reader reader = getReaderFromZipFile();
if ( reader == null ) {
throw new PhylogenyParserException( "Zip file \"" + getSource()
- + "\" appears not to contain any entries" );
+ + "\" appears not to contain any entries" );
}
xml_reader.parse( new InputSource( reader ) );
}
final Reader reader = new InputStreamReader( zip_is );
if ( reader == null ) {
throw new PhylogenyParserException( "Zip input stream \"" + getSource()
- + "\" appears not to contain any data" );
+ + "\" appears not to contain any data" );
}
xml_reader.parse( new InputSource( reader ) );
}
}
catch ( final ParserConfigurationException parser_config_exception ) {
throw new PhylogenyParserException( "Failed to parse [" + getSource()
- + "] Problem with xml parser _configuration: " + parser_config_exception.getMessage() );
+ + "] Problem with xml parser _configuration: " + parser_config_exception.getMessage() );
}
catch ( final IOException e ) {
throw new PhylogenyParserException( "Problem with input source [" + getSource() + "]: \n" + e.getMessage() );
_warning_messages.append( "[line: " + e.getLineNumber() + "] " + e.getMessage() );
}
}
+
+ @Override
+ public String getName() {
+ return "ToL Parser";
+ }
}
\ No newline at end of file