I have this function
crawler.addAnalyzer(new Analyzer() {
public void analyze(final Resource resource){
final BufferedReader in = new BufferedReader(new InputStreamReader(resource.getInputStream()));
System.out.println(in.readLine().toString());
}
});
I am trying to read out, to the console for right now the input in of my resource.
I get this error:
Main.java:120: unreported exception java.io.IOException; must be caught or declared to be thrown
But its been a while since I programmed java and forgot how to handle exceptions!! any advice?
crawler.addAnalyzer(new Analyzer() {
public void analyze(final Resource resource){
final BufferedReader in = new BufferedReader(new InputStreamReader(resource.getInputStream()));
System.out.println(in.readLine().toString());
}
});
I am trying to read out, to the console for right now the input in of my resource.
I get this error:
Main.java:120: unreported exception java.io.IOException; must be caught or declared to be thrown
But its been a while since I programmed java and forgot how to handle exceptions!! any advice?
Last edited: