|
||||||||||
| 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.trecweb.TrecWebDocument
public class TrecWebDocument
| 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 | |
|---|---|
TrecWebDocument()
Creates an empty Doc2Document object. |
|
| Method Summary | |
|---|---|
String |
getContent()
Returns the content of this Gov2 document. |
String |
getDocid()
Returns the docid of this Gov2 document. |
static void |
readDocument(TrecWebDocument doc,
String s)
Reads a raw XML string into a TrecWebDocument object. |
void |
readFields(DataInput in)
Serializes this object. |
static boolean |
readNextTrecWebDocument(TrecWebDocument doc,
DataInputStream stream)
|
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 TrecWebDocument()
Doc2Document object.
| Method Detail |
|---|
public void write(DataOutput out)
throws IOException
IOException
public void readFields(DataInput in)
throws IOException
IOExceptionpublic String getDocid()
getDocid in class Indexablepublic String getContent()
getContent in class Indexable
public static void readDocument(TrecWebDocument doc,
String s)
TrecWebDocument object.
doc - the TrecWebDocument objects - raw XML string
public static boolean readNextTrecWebDocument(TrecWebDocument doc,
DataInputStream stream)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||