1 /* Copyright (c) 2004 The Nutch Organization. All rights reserved. */ 2 /* Use subject to the conditions in http://www.nutch.org/LICENSE.txt. */ 3 4 package net.nutch.parse; 5 6 import net.nutch.protocol.Content; 7 8 /** A parser for content generated by a {@link net.nutch.protocol.Protocol} 9 * implementation. This interface is implemented by extensions. Nutch's core 10 * contains no page parsing code. 11 */ 12 public interface Parser { 13 /** The name of the extension point. */ 14 public final static String X_POINT_ID = Parser.class.getName(); 15 16 /** Creates the parse for some content. */ 17 Parse getParse(Content c) throws ParseException; 18 } 19