ch.cyberduck.core.features.Write.temporary()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(119)

本文整理了Java中ch.cyberduck.core.features.Write.temporary()方法的一些代码示例,展示了Write.temporary()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Write.temporary()方法的具体详情如下:
包路径:ch.cyberduck.core.features.Write
类名称:Write
方法名:temporary

Write.temporary介绍

暂无

代码示例

代码示例来源:origin: iterate-ch/cyberduck

@Override
public boolean temporary() {
  return proxy.temporary();
}

代码示例来源:origin: iterate-ch/cyberduck

@Override
public boolean temporary() {
  return proxy.temporary();
}

代码示例来源:origin: iterate-ch/cyberduck

@Override
public boolean temporary() {
  return proxy.temporary();
}

代码示例来源:origin: iterate-ch/cyberduck

@Override
public boolean temporary() {
  return proxy.temporary();
}

代码示例来源:origin: iterate-ch/cyberduck

@Override
public AbstractUploadFilter filter(final Session<?> source, final Session<?> destination, final TransferAction action, final ProgressListener listener) {
  if(log.isDebugEnabled()) {
    log.debug(String.format("Filter transfer with action %s", action));
  }
  final Symlink symlink = source.getFeature(Symlink.class);
  final UploadSymlinkResolver resolver = new UploadSymlinkResolver(symlink, roots);
  if(options.temporary) {
    options.withTemporary(source.getFeature(Write.class).temporary());
  }
  if(action.equals(TransferAction.resume)) {
    return new ResumeFilter(resolver, source, options).withCache(cache);
  }
  if(action.equals(TransferAction.rename)) {
    return new RenameFilter(resolver, source, options).withCache(cache);
  }
  if(action.equals(TransferAction.renameexisting)) {
    return new RenameExistingFilter(resolver, source, options).withCache(cache);
  }
  if(action.equals(TransferAction.skip)) {
    return new SkipFilter(resolver, source, options).withCache(cache);
  }
  if(action.equals(TransferAction.comparison)) {
    return new CompareFilter(resolver, source, options, listener).withCache(cache);
  }
  return new OverwriteFilter(resolver, source, options).withCache(cache);
}

相关文章