edtFTPj

com.enterprisedt.net.ftp
Class UnixFileParser

java.lang.Object
  extended by com.enterprisedt.net.ftp.FTPFileParser
      extended by com.enterprisedt.net.ftp.UnixFileParser

public class UnixFileParser
extends FTPFileParser

Represents a remote Unix file parser

Version:
$Revision: 1.16 $
Author:
Bruce Blackshaw

Field Summary
static String cvsId
          Revision control id
 
Constructor Summary
UnixFileParser()
          Constructor
 
Method Summary
static boolean isUnix(String raw)
          Is this a Unix format listing?
 FTPFile parse(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(Locale locale)
          Set the locale for date parsing of listings
 
Methods inherited from class com.enterprisedt.net.ftp.FTPFileParser
split, split, split
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cvsId

public static final String cvsId
Revision control id

See Also:
Constant Field Values
Constructor Detail

UnixFileParser

public UnixFileParser()
Constructor

Method Detail

setLocale

public void setLocale(Locale locale)
Set the locale for date parsing of listings

Specified by:
setLocale in class FTPFileParser
Parameters:
locale - locale to set

isUnix

public static boolean isUnix(String raw)
Is this a Unix format listing?

Parameters:
raw - raw listing line
Returns:
true if Unix, false otherwise

parse

public FTPFile parse(String raw)
              throws ParseException
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:
parse in class FTPFileParser
Parameters:
raw - raw string to parse
Throws:
ParseException

edtFTPj

Copyright © 2000-2007 Enterprise Distributed Technologies. All Rights Reserved.