[TOC]
org.apache.nutch.parse
Class ParseText
- java.lang.Object
- org.apache.nutch.parse.ParseText
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public final class ParseText extends Object implements org.apache.hadoop.io.Writable
Field Summary
Fields Modifier and Type Field and Description static String
DIR_NAME
Constructor Summary
Constructors Constructor and Description ParseText()
ParseText(String text)
Method Summary
Methods Modifier and Type Method and Description boolean
equals(Object o)
String
getText()
static void
main(String[] argv)
static ParseText
read(DataInput in)
void
readFields(DataInput in)
String
toString()
void
write(DataOutput out)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Field Detail
-
DIR_NAME
public static final String DIR_NAME
- See Also:
- [Constant Field Values](../../../../constant-values.html#org.apache.nutch.parse.ParseText.DIR_NAME)
Constructor Detail
-
ParseText
public ParseText()
-
ParseText
public ParseText(String text)
Method Detail
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
- <code>readFields</code> in interface <code>org.apache.hadoop.io.Writable</code>
- Throws:
- <code>IOException</code>
-
write
public final void write(DataOutput out) throws IOException
- Specified by:
- <code>write</code> in interface <code>org.apache.hadoop.io.Writable</code>
- Throws:
- <code>IOException</code>
-
read
public static final ParseText read(DataInput in) throws IOException
- Throws:
- <code>IOException</code>
-
getText
public String getText()
-
equals
public boolean equals(Object o)
- Overrides:
- <code>equals</code> in class <code>Object</code>
-
toString
public String toString()
- Overrides:
- <code>toString</code> in class <code>Object</code>
-
main
public static void main(String[] argv) throws Exception
- Throws:
- <code>Exception</code>