|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cloud9.collection.Indexable
edu.umd.cloud9.collection.trec.TrecDocument
public class TrecDocument
Object representing a TREC document.
| Field Summary | |
|---|---|
static String |
XML_END_TAG
End delimiter of the document, which is < /DOC>. |
static String |
XML_START_TAG
Start delimiter of the document, which is < DOC>. |
| Constructor Summary | |
|---|---|
TrecDocument()
Creates an empty TrecDocument object. |
|
| Method Summary | |
|---|---|
String |
getContent()
Returns the content of the document. |
String |
getDocid()
Returns the globally-unique String identifier of the document within the collection (e.g., LA123190-0134). |
static void |
readDocument(TrecDocument doc,
String s)
Reads a raw XML string into a TrecDocument object. |
void |
readFields(DataInput in)
Serializes this object. |
void |
write(DataOutput out)
Deserializes this object. |
| Methods inherited from class edu.umd.cloud9.collection.Indexable |
|---|
getDisplayContent, getDisplayContentType |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String XML_START_TAG
DOC>.
public static final String XML_END_TAG
/DOC>.
| Constructor Detail |
|---|
public TrecDocument()
TrecDocument object.
| Method Detail |
|---|
public void write(DataOutput out)
throws IOException
IOException
public void readFields(DataInput in)
throws IOException
IOExceptionpublic String getDocid()
LA123190-0134).
getDocid in class Indexablepublic String getContent()
getContent in class Indexable
public static void readDocument(TrecDocument doc,
String s)
TrecDocument object.
doc - the TrecDocument objects - raw XML string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||