Package com.enterprisedt.net.ftp
Class UnixFileParser
java.lang.Object
com.enterprisedt.net.ftp.FTPFileParser
com.enterprisedt.net.ftp.UnixFileParser
Represents a remote Unix file parser
- Version:
- $Revision$
- Author:
- Bruce Blackshaw
-
Field Summary
FieldsFields inherited from class com.enterprisedt.net.ftp.FTPFileParser
ignoreDateParseErrors -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanIs this a Unix format listing?booleanisValidFormat(String[] listing) Valid format for this parserParse 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 .htaccessvoidSet the locale for date parsing of listingstoString()Methods inherited from class com.enterprisedt.net.ftp.FTPFileParser
isMultiLine, setIgnoreDateParseErrors, split, split, split, trimStart
-
Field Details
-
cvsId
Revision control id- See Also:
-
-
Constructor Details
-
UnixFileParser
public UnixFileParser()Constructor
-
-
Method Details
-
setLocale
Set the locale for date parsing of listings- Specified by:
setLocalein classFTPFileParser- Parameters:
locale- locale to set
-
toString
-
isValidFormat
Valid format for this parser- Overrides:
isValidFormatin classFTPFileParser- Parameters:
listing-- Returns:
- true if valid
-
isUnix
Is this a Unix format listing?- Parameters:
raw- raw listing line- Returns:
- true if Unix, false otherwise
-
parse
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- Specified by:
parsein classFTPFileParser- Parameters:
raw- raw string to parse- Throws:
ParseException
-