org.bitcoinj.core.Utils.closeUnchecked()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(117)

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

Utils.closeUnchecked介绍

暂无

代码示例

代码示例来源:origin: fr.acinq/bitcoinj-core

/**
 * If set, the file is expected to contain a checkpoints file calculated with BuildCheckpoints. It makes initial
 * block sync faster for new users - please refer to the documentation on the bitcoinj website
 * (https://bitcoinj.github.io/speeding-up-chain-sync) for further details.
 */
public WalletAppKit setCheckpoints(InputStream checkpoints) {
  if (this.checkpoints != null)
    Utils.closeUnchecked(this.checkpoints);
  this.checkpoints = checkNotNull(checkpoints);
  return this;
}

代码示例来源:origin: greenaddress/GreenBits

/**
 * If set, the file is expected to contain a checkpoints file calculated with BuildCheckpoints. It makes initial
 * block sync faster for new users - please refer to the documentation on the bitcoinj website
 * (https://bitcoinj.github.io/speeding-up-chain-sync) for further details.
 */
public WalletAppKit setCheckpoints(InputStream checkpoints) {
  if (this.checkpoints != null)
    Utils.closeUnchecked(this.checkpoints);
  this.checkpoints = checkNotNull(checkpoints);
  return this;
}

代码示例来源:origin: cash.bitcoinj/bitcoinj-core

/**
 * If set, the file is expected to contain a checkpoints file calculated with BuildCheckpoints. It makes initial
 * block sync faster for new users - please refer to the documentation on the bitcoinj website for further details.
 */
public WalletAppKit setCheckpoints(InputStream checkpoints) {
  if (this.checkpoints != null)
    Utils.closeUnchecked(this.checkpoints);
  this.checkpoints = checkNotNull(checkpoints);
  return this;
}

代码示例来源:origin: HashEngineering/dashj

/**
 * If set, the file is expected to contain a checkpoints file calculated with BuildCheckpoints. It makes initial
 * block sync faster for new users - please refer to the documentation on the bitcoinj website for further details.
 */
public WalletAppKit setCheckpoints(InputStream checkpoints) {
  if (this.checkpoints != null)
    Utils.closeUnchecked(this.checkpoints);
  this.checkpoints = checkNotNull(checkpoints);
  return this;
}

相关文章