import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import javax.xml.stream.StreamFilter;
import org.ccil.cowan.tagsoup.Parser;
import org.ita.capes.ListaProfessoresSAXHandler;
import org.ita.capes.Professor;
import org.ita.capes.ief.IefSAXHandler;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
public class PrincipalIefInfoParseUm {
public static void main(String args[]){
Parser parser = new Parser();
FileInputStream fis = null;
try {
fis = new FileInputStream("C:\\Users\\Einstein\\workspace\\TG6_Parse\\src\\iefExemplo.html");
//fis = new FileInputStream("D:\\Iefs\\1000.txt");//sem pagina
//fis = new FileInputStream("D:\\Iefs\\270.txt"); //sem sigla
//fis = new FileInputStream("D:\\Iefs\\1849.txt"); // Cidade com hifen e sem bairro
//fis = new FileInputStream("D:\\Iefs\\2089.txt");//sem homepage @@
//fis = new FileInputStream("D:\\Iefs\\2092.txt");//sem cep
//fis = new FileInputStream("D:\\Iefs\\2081.txt");//sem cep //sem homepage
//fis = new FileInputStream("D:\\Iefs\\450.txt");// cidade com - (Ji-parana) // nome do ief com -
//fis = new FileInputStream("D:\\Iefs\\19.txt");// sigla com - (PUC-Campinas) // nome do ief com -
} catch (FileNotFoundException e1) {
e1.printStackTrace();
}
InputStream is = fis;
IefSAXHandler handler = new IefSAXHandler();
parser.setContentHandler(handler);
InputSource input = new InputSource(is);
try {
parser.parse(input);
} catch (IOException e) {
e.printStackTrace();
} catch (SAXException e) {
//e.printStackTrace();
}
handler.getCorrente();
}
}