commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J.Matys...@CENIT.DE
Subject [NET] [PATCH] DefaultFTPFileListParser: ftp servers returning ger man date format
Date Fri, 05 Dec 2003 09:50:53 GMT
Hi,

this is a patch for the DefaultFTPFileListParser.java file which enables 
the commons.net.ftp classes to communicate also with ftp servers returning 
a german date format which is "day month year" instead of "month day year".

We had this problem with AIX servers having default language of root set to
de_DE.

This patched parser automatically detects the date format and 
knows german and english monthnames. 
It can easily be adapted for other languages (see method __parseMonth())

Joerg

 <<DefaultFTPFileListParser.java>> 

Jörg Matysiak
Software Development Systems Management
CENIT AG Systemhaus
Industriestraße 52-54
D-70565 Stuttgart
Tel.: +49 711 7825-3173
Fax: +49 711 7825-4173
j.matysiak@cenit.de <mailto:j.matysiak@cenit.de>
www.cenit-group.com <http://www.cenit-group.com/>

+++  Newsticker  +++ aktuelle Veranstaltungen unter www.cenit.de/events
<http://www.cenit.de/events> +++ Newsticker +++ 





Mime
View raw message