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

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

Introduction

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

Prototype

public OS400FTPEntryParser() 

Source Link

Document

The default constructor for a OS400FTPEntryParser object.

Usage

From source file:ch.cyberduck.core.ftp.FTPParserFactory.java

private CompositeFileEntryParser createOS400FTPEntryParser(final TimeZone timezone) {
    return new CompositeFileEntryParser(Arrays.asList(new OS400FTPEntryParser() {
        @Override/*from  w  ww. j av a 2s.co  m*/
        protected FTPClientConfig getDefaultConfiguration() {
            final FTPClientConfig config = super.getDefaultConfiguration();
            config.setServerTimeZoneId(timezone.getID());
            return config;
        }
    }, this.createUnixFTPEntryParser(timezone)));
}

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 {/*from w  ww.  ja v a2 s  . c  o  m*/
        return new CompositeFileEntryParser(
                new FTPFileEntryParser[] { new OS400FTPEntryParser(), new UnixFTPEntryParser() });
    }
}