ch.cyberduck.core.Local.withBookmark()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(132)

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

Local.withBookmark介绍

暂无

代码示例

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

@Override
public Local find(final Host bookmark) {
  if(null != bookmark.getDownloadFolder()) {
    if(bookmark.getDownloadFolder().exists()) {
      return bookmark.getDownloadFolder();
    }
  }
  final Local directory = LocalFactory.get(preferences.getProperty("queue.download.folder")).withBookmark(
      preferences.getProperty("queue.download.folder.bookmark"));
  if(log.isInfoEnabled()) {
    log.info(String.format("Suggest default download folder %s for bookmark %s", directory, bookmark));
  }
  return directory;
}

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

public TerminalHostKeyVerifier(final TerminalPromptReader prompt) {
  super(LocalFactory.get(PreferencesFactory.get().getProperty("ssh.knownhosts")).withBookmark(
      PreferencesFactory.get().getProperty("ssh.knownhosts.bookmark")
  ));
  this.prompt = prompt;
}

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

public PromptHostKeyCallback(final WindowController c) {
  this(c, LocalFactory.get(PreferencesFactory.get().getProperty("ssh.knownhosts")).withBookmark(
      PreferencesFactory.get().getProperty("ssh.knownhosts.bookmark")
  ));
}

相关文章