Example usage for org.apache.commons.net.ftp.parser CompositeFileEntryParser CompositeFileEntryParser

List of usage examples for org.apache.commons.net.ftp.parser CompositeFileEntryParser CompositeFileEntryParser

Introduction

In this page you can find the example usage for org.apache.commons.net.ftp.parser CompositeFileEntryParser CompositeFileEntryParser.

Prototype

public CompositeFileEntryParser(FTPFileEntryParser[] ftpFileEntryParsers) 

Source Link

Usage

From source file:org.openo.nfvo.emsdriver.commons.ftp.ExtendsDefaultFTPFileEntryParserFactory.java

public FTPFileEntryParser createNTFTPEntryParser() {
    if (config != null && FTPClientConfig.SYST_NT.equals(config.getServerSystemKey())) {
        return new NTFTPEntryParser();
    } else {//from  w w w .  ja  v  a 2  s. co  m
        return new CompositeFileEntryParser(
                new FTPFileEntryParser[] { new NTFTPEntryParser(), new UnixFTPEntryParser() });
    }
}

From source file:org.openo.nfvo.emsdriver.commons.ftp.ExtendsDefaultFTPFileEntryParserFactory.java

public FTPFileEntryParser createOS400FTPEntryParser() {
    if (config != null && FTPClientConfig.SYST_OS400.equals(config.getServerSystemKey())) {
        return new OS400FTPEntryParser();
    } else {/*w w  w .  j  av a 2  s.c o m*/
        return new CompositeFileEntryParser(
                new FTPFileEntryParser[] { new OS400FTPEntryParser(), new UnixFTPEntryParser() });
    }
}