org.apache.droids.robot.walker
Class FileTask
java.lang.Object
org.apache.droids.robot.walker.FileTask
- All Implemented Interfaces:
- java.io.Serializable, Task
public class FileTask
- extends java.lang.Object
- implements Task
- See Also:
- Serialized Form
|
Constructor Summary |
FileTask(java.io.File file,
int depth)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FileTask
public FileTask(java.io.File file,
int depth)
getId
public java.lang.String getId()
- Description copied from interface:
Task
- The id of the task. In a standard crawl that is most likely the url that
identifies the task
- Specified by:
getId in interface Task
- Returns:
- The id of the task
getTaskDate
public java.util.Date getTaskDate()
- Description copied from interface:
Task
- When was the task created
- Specified by:
getTaskDate in interface Task
- Returns:
- the date when the task was created.
getDepth
public int getDepth()
- Specified by:
getDepth in interface Task
- Returns:
- The depth of the task
getFile
public java.io.File getFile()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2007-2009. All Rights Reserved.