A parser for content generated by a org.apache.nutch.protocol.Protocol implementation. This interface is implemented by extensions. Nutch's core contains no page parsing code.
| 28 | * implemented by extensions. Nutch's core contains no page parsing code. |
| 29 | */ |
| 30 | public interface Parser extends FieldPluggable, Configurable { |
| 31 | /** The name of the extension point. */ |
| 32 | public final static String X_POINT_ID = Parser.class.getName(); |
| 33 | |
| 34 | /** |
| 35 | * <p> |
| 36 | * This method parses content in WebPage instance |
| 37 | * |
| 38 | * |
| 39 | * @param url |
| 40 | * Page's URL |
| 41 | * @param page |
| 42 | */ |
| 43 | Parse getParse(String url, WebPage page); |
| 44 | } |
no test coverage detected