org.apache.nutch.parse
Class ParseText

java.lang.Object
  extended by org.apache.hadoop.io.VersionedWritable
      extended by org.apache.nutch.parse.ParseText
All Implemented Interfaces:
Writable

public final class ParseText
extends VersionedWritable


Field Summary
static String DIR_NAME
           
 
Constructor Summary
ParseText()
           
ParseText(String text)
           
 
Method Summary
 boolean equals(Object o)
           
 String getText()
           
 byte getVersion()
          Return the version number of the current implementation.
 int hashCode()
           
static ParseText read(DataInput in)
           
 void readFields(DataInput in)
          Reads the fields of this object from in.
 String toString()
           
 void write(DataOutput out)
          Writes the fields of this object to out.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DIR_NAME

public static final String DIR_NAME
See Also:
Constant Field Values
Constructor Detail

ParseText

public ParseText()

ParseText

public ParseText(String text)
Method Detail

getVersion

public byte getVersion()
Description copied from class: VersionedWritable
Return the version number of the current implementation.

Specified by:
getVersion in class VersionedWritable

readFields

public void readFields(DataInput in)
                throws IOException
Description copied from interface: Writable
Reads the fields of this object from in. For efficiency, implementations should attempt to re-use storage in the existing object where possible.

Specified by:
readFields in interface Writable
Overrides:
readFields in class VersionedWritable
Throws:
IOException

write

public final void write(DataOutput out)
                 throws IOException
Description copied from interface: Writable
Writes the fields of this object to out.

Specified by:
write in interface Writable
Overrides:
write in class VersionedWritable
Throws:
IOException

read

public static final ParseText read(DataInput in)
                            throws IOException
Throws:
IOException

getText

public String getText()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007, 2012, Oracle and/or its affiliates. All rights reserved.