public class LeitorIef {
private Parser parser = new Parser();
public List<Professor> getProfessores(InputStream is) throws IOException, SAXException{
ListaProfessoresSAXHandler handler = new ListaProfessoresSAXHandler();
parser.setContentHandler(handler);
InputSource input = new InputSource(is);
parser.parse(input);
return handler.getLista();
}