org.apache.nutch.parse

## Class ParseImpl

- java.lang.Object
- - org.apache.nutch.parse.ParseImpl

- All Implemented Interfaces:
    Writable, Parse

      public class ParseImpl
      extends java.lang.Object
      implements Parse, Writable

  The result of parsing a page's raw content.
  See Also:
    `Parser.getParse(Content)`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ParseImpl()`
    `ParseImpl(Parse parse)`
    `ParseImpl(ParseText text, ParseData data)`
    `ParseImpl(ParseText text, ParseData data, boolean isCanonical)`
    `ParseImpl(java.lang.String text, ParseData data)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ParseData` | `getData()` Other data extracted from the page.
    `java.lang.String` | `getText()` The textual content of the page.
    `boolean` | `isCanonical()` Indicates if the parse is coming from a url or a sub-url
    `static ParseImpl` | `read(java.io.DataInput in)`
    `void` | `readFields(java.io.DataInput in)`
    `void` | `write(java.io.DataOutput out)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ParseImpl

          public ParseImpl()

    - #### ParseImpl

          public ParseImpl(Parse parse)

    - #### ParseImpl

          public ParseImpl(java.lang.String text,
                           ParseData data)

    - #### ParseImpl

          public ParseImpl(ParseText text,
                           ParseData data)

    - #### ParseImpl

          public ParseImpl(ParseText text,
                           ParseData data,
                           boolean isCanonical)

  - ### Method Detail

    - #### getText

          public java.lang.String getText()

      Description copied from interface: `Parse`
      The textual content of the page. This is indexed, searched, and used when generating snippets.
      Specified by:
        `getText` in interface `Parse`

    - #### getData

          public ParseData getData()

      Description copied from interface: `Parse`
      Other data extracted from the page.
      Specified by:
        `getData` in interface `Parse`

    - #### isCanonical

          public boolean isCanonical()

      Description copied from interface: `Parse`
      Indicates if the parse is coming from a url or a sub-url
      Specified by:
        `isCanonical` in interface `Parse`

    - #### write

          public final void write(java.io.DataOutput out)
                           throws java.io.IOException

      Specified by:
        `write` in interface `Writable`
      Throws:
        `java.io.IOException`

    - #### readFields

          public void readFields(java.io.DataInput in)
                          throws java.io.IOException

      Specified by:
        `readFields` in interface `Writable`
      Throws:
        `java.io.IOException`

    - #### read

          public static ParseImpl read(java.io.DataInput in)
                                throws java.io.IOException

      Throws:
        `java.io.IOException`

Copyright © 2019 The Apache Software Foundation