|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--lempinen.neatseeker.core.Target
Represents a simple target document object.
The Target class provides the basic data and methods for implementing index targets. The only attributes it holds about the index target are the URI or URL and the document size.
Most search engine implementations will need more than this.
For a slightly more exciting variant, see the HTMLDocument class.
Field Summary | |
protected long |
size
|
protected java.lang.String |
uri
|
Constructor Summary | |
Target()
Creates an empty Target instance. |
|
Target(java.lang.String u)
Creates an Target instance and initialises the URI. |
Method Summary | |
boolean |
equals(java.lang.Object anotherObject)
Compares two Targets for equality. |
long |
getSize()
Returns the size. |
java.lang.String |
getURI()
Returns the URI. |
private void |
readObject(java.io.ObjectInputStream in)
Reads a serialized object. |
void |
setSize(long s)
Sets the size. |
void |
setURI(java.lang.String u)
Sets the URI. |
java.lang.String |
toString()
Returns a String representation of the Target. |
private void |
writeObject(java.io.ObjectOutputStream out)
Writes the object in a serialized form. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected java.lang.String uri
protected long size
Constructor Detail |
public Target()
public Target(java.lang.String u)
Method Detail |
public void setURI(java.lang.String u)
public java.lang.String getURI()
public void setSize(long s)
public long getSize()
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
public boolean equals(java.lang.Object anotherObject)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |