public class UnixFileParser extends FTPFileParser
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
cvsId
Revision control id
|
| Constructor and Description |
|---|
UnixFileParser()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isUnix(java.lang.String raw)
Is this a Unix format listing?
|
FTPFile |
parse(java.lang.String raw)
Parse server supplied string, e.g.:
lrwxrwxrwx 1 wuftpd wuftpd 14 Jul 22 2002 MIRRORS -> README-MIRRORS
-rw-r--r-- 1 b173771 users 431 Mar 31 20:04 .htaccess
|
void |
setLocale(java.util.Locale locale)
Set the locale for date parsing of listings
|
setIgnoreDateParseErrorspublic static final java.lang.String cvsId
public void setLocale(java.util.Locale locale)
setLocale in class FTPFileParserlocale - locale to setpublic static boolean isUnix(java.lang.String raw)
raw - raw listing linepublic FTPFile parse(java.lang.String raw) throws java.text.ParseException
parse in class FTPFileParserraw - raw string to parsejava.text.ParseException