org.apache.nutch.parse
Class ParseStatusUtils

java.lang.Object
  extended by org.apache.nutch.parse.ParseStatusUtils

public class ParseStatusUtils
extends Object


Field Summary
static HashMap<Short,String> minorCodes
           
static ParseStatus STATUS_SUCCESS
           
 
Constructor Summary
ParseStatusUtils()
           
 
Method Summary
static String getArg(ParseStatus status, int n)
           
static Parse getEmptyParse(Exception e, Configuration conf)
           
static Parse getEmptyParse(int minorCode, String message, Configuration conf)
           
static String getMessage(ParseStatus status)
          A convenience method.
static boolean isSuccess(ParseStatus status)
           
static String toString(ParseStatus status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUS_SUCCESS

public static ParseStatus STATUS_SUCCESS

minorCodes

public static final HashMap<Short,String> minorCodes
Constructor Detail

ParseStatusUtils

public ParseStatusUtils()
Method Detail

isSuccess

public static boolean isSuccess(ParseStatus status)

getMessage

public static String getMessage(ParseStatus status)
A convenience method. Return a String representation of the first argument, or null.


getArg

public static String getArg(ParseStatus status,
                            int n)

getEmptyParse

public static Parse getEmptyParse(Exception e,
                                  Configuration conf)

getEmptyParse

public static Parse getEmptyParse(int minorCode,
                                  String message,
                                  Configuration conf)

toString

public static String toString(ParseStatus status)


Copyright © 2012 The Apache Software Foundation