|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gmod.ant.task.net.ftp.FtpListingParser
This class parses a single line from an ftp listing generated by Ant's FTP task. After parsing you can retrieve the filename and the date in milliseconds.
| Constructor Summary | |
FtpListingParser(String s,
String regex,
org.apache.tools.ant.Project p)
Constructor that takes the ftp listing line, a java regex pattern, and the current ant project for access to the log stream. |
|
| Method Summary | |
boolean |
find()
Method to parse out the filename and file date in miliseconds since the epoc. |
String |
getFileName()
Returns the remote filename parsed out of the ftp listing file. |
String |
getFtpFileName()
Returns the remote ftp filename parsed out of the ftp listing file. |
long |
getTime()
Returns the last modified date in miliseconds for the file parsed out of the ftp listing file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FtpListingParser(String s,
String regex,
org.apache.tools.ant.Project p)
s - Single line from the ftp listing file.regex - Pattern used to further refine the needed files.p - The current ant project usually accessed via org.apache.tools.ant.Task.getProject()| Method Detail |
public boolean find()
public String getFileName()
public String getFtpFileName()
public long getTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||