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

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

Introduction

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

Prototype

public NTFTPEntryParser() 

Source Link

Document

The sole constructor for an NTFTPEntryParser object.

Usage

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

private CompositeFileEntryParser createNTFTPEntryParser(final TimeZone timezone) {
    return new CompositeFileEntryParser(Arrays.asList(new NTFTPEntryParser() {
        @Override//from   w  w w.ja v  a  2 s . c om
        public 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 createNTFTPEntryParser() {
    if (config != null && FTPClientConfig.SYST_NT.equals(config.getServerSystemKey())) {
        return new NTFTPEntryParser();
    } else {//from ww w  . j a v a2 s. co m
        return new CompositeFileEntryParser(
                new FTPFileEntryParser[] { new NTFTPEntryParser(), new UnixFTPEntryParser() });
    }
}