|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScannerListener
A listener for recieving events on resources from a Scanner.
| Method Summary | |
|---|---|
boolean |
onAccept(java.lang.String name)
Accept a scanned resource. |
void |
onProcess(java.lang.String name,
java.io.InputStream in)
Process a scanned resource. |
| Method Detail |
|---|
boolean onAccept(java.lang.String name)
This method will be invoked by a Scanner to ascertain if the
listener accepts the resource for processing. If acceptable then
the Scanner will then invoke the
onProcess(java.lang.String, java.io.InputStream) method.
name - the resource name.
void onProcess(java.lang.String name,
java.io.InputStream in)
throws java.io.IOException
This method will be invoked after the listener has accepted the resource.
name - the resource name.in - the input stream of the resource
java.io.IOException - if an error occurs when processing the the resource.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||