Java 类org.apache.commons.net.ftp.parser.OS400FTPEntryParser 实例源码

项目:cyberduck    文件:FTPParserFactory.java   
private CompositeFileEntryParser createOS400FTPEntryParser(final TimeZone timezone) {
    return new CompositeFileEntryParser(Arrays.asList(
            new OS400FTPEntryParser() {
                @Override
                protected FTPClientConfig getDefaultConfiguration() {
                    final FTPClientConfig config = super.getDefaultConfiguration();
                    config.setServerTimeZoneId(timezone.getID());
                    return config;
                }
            },
            this.createUnixFTPEntryParser(timezone)
    ));
}
项目:Camel    文件:OsgiParserFactory.java   
/**
 * Creates an OS400 FTP parser: if the config exists, and the system key equals
 * {@link FTPClientConfig#SYST_OS400} then a plain {@link OS400FTPEntryParser} is used,
 * otherwise a composite of {@link OS400FTPEntryParser} and {@link UnixFTPEntryParser} is used.
 * @param config the config to use, may be {@code null}
 * @return the parser
 */
private FTPFileEntryParser createOS400FTPEntryParser(FTPClientConfig config) {
    if (config != null
        && FTPClientConfig.SYST_OS400.equals(config.getServerSystemKey())) {
        return new OS400FTPEntryParser(config);
    } else {
        return new CompositeFileEntryParser(new FTPFileEntryParser[] {
            new OS400FTPEntryParser(config),
            new UnixFTPEntryParser(config)
        });
    }
}
项目:xdm    文件:DefaultFTPFileEntryParserFactory.java   
private FTPFileEntryParser createOS400FTPEntryParser(FTPClientConfig config) {
   return (FTPFileEntryParser)(config != null && "OS/400".equals(config.getServerSystemKey())?new OS400FTPEntryParser(config):new CompositeFileEntryParser(new FTPFileEntryParser[]{new OS400FTPEntryParser(config), new UnixFTPEntryParser(config)}));
}