public class ParseImpl extends Object implements Parse, Writable, Configurable
Parser.getParse(Content)
Constructor and Description |
---|
ParseImpl() |
ParseImpl(Parse parse) |
ParseImpl(ParseText text,
ParseData data) |
ParseImpl(String text,
ParseData data) |
Modifier and Type | Method and Description |
---|---|
Configuration |
getConf()
Return the configuration used by this object.
|
ParseData |
getData()
Other data extracted from the page.
|
String |
getText()
The textual content of the page.
|
static ParseImpl |
read(DataInput in,
Configuration conf) |
void |
readFields(DataInput in)
Reads the fields of this object from
in . |
void |
setConf(Configuration conf)
Set the configuration to be used by this object.
|
void |
write(DataOutput out)
Writes the fields of this object to
out . |
public ParseImpl()
public ParseImpl(Parse parse)
public String getText()
Parse
public ParseData getData()
Parse
public final void write(DataOutput out) throws IOException
Writable
out
.write
in interface Writable
IOException
public void readFields(DataInput in) throws IOException
Writable
in
. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.readFields
in interface Writable
IOException
public static ParseImpl read(DataInput in, Configuration conf) throws IOException
IOException
public void setConf(Configuration conf)
Configurable
setConf
in interface Configurable
public Configuration getConf()
Configurable
getConf
in interface Configurable
Copyright © 2007, 2014, Oracle and/or its affiliates. All rights reserved.