if (cachedFtpFileEntryParser != null)
{
FTPFile matched = cachedFtpFileEntryParser.parseFTPEntry(listEntry);
if (matched != null)
{
return matched;
}
}
else
{
for (int iterParser=0; iterParser < ftpFileEntryParsers.length; iterParser++)
{
FTPFileEntryParser ftpFileEntryParser = ftpFileEntryParsers[iterParser];
FTPFile matched = ftpFileEntryParser.parseFTPEntry(listEntry);
if (matched != null)
{
cachedFtpFileEntryParser = ftpFileEntryParser;
return matched;
}
}
}
return null;