List of usage examples for org.apache.commons.net.ftp.parser OS400FTPEntryParser OS400FTPEntryParser
public OS400FTPEntryParser()
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() }); } }