|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.corpora.DocumentContentImpl
Represents the commonalities between all sorts of document contents.
Constructor Summary | |
DocumentContentImpl()
Default construction |
|
DocumentContentImpl(String s)
For ranges |
|
DocumentContentImpl(URL u,
String encoding,
Long start,
Long end)
Contruction from URL and offsets. |
Method Summary | |
boolean |
equals(Object other)
Two documents are the same if their contents is the same |
DocumentContent |
getContent(Long start,
Long end)
The contents under a particular span. |
String |
getOriginalContent()
Return the original content of the document received during the loading phase or on construction from string. |
int |
hashCode()
Calculate the hash value for the object. |
Long |
size()
The size of this content (e.g. |
String |
toString()
Returns the String representing the content in case of a textual document. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DocumentContentImpl()
public DocumentContentImpl(URL u, String encoding, Long start, Long end) throws IOException
public DocumentContentImpl(String s)
Method Detail |
public DocumentContent getContent(Long start, Long end) throws InvalidOffsetException
getContent
in interface DocumentContent
InvalidOffsetException
public String toString()
public Long size()
size
in interface DocumentContent
public boolean equals(Object other)
public int hashCode()
public String getOriginalContent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |