azkaban.utils.Props.storeLocal()方法的使用及代码示例

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

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

Props.storeLocal介绍

[英]Store only those properties defined at this local level
[中]仅存储在此本地级别定义的属性

代码示例

代码示例来源:origin: azkaban/azkaban

/**
 * Store only those properties defined at this local level
 *
 * @param file The file to write to
 * @throws IOException If the file can't be found or there is an io error
 */
public void storeLocal(final File file) throws IOException {
 final BufferedOutputStream out =
   new BufferedOutputStream(new FileOutputStream(file));
 try {
  storeLocal(out);
 } finally {
  out.close();
 }
}

代码示例来源:origin: com.linkedin.azkaban/az-core

/**
 * Store only those properties defined at this local level
 *
 * @param file The file to write to
 * @throws IOException If the file can't be found or there is an io error
 */
public void storeLocal(final File file) throws IOException {
 final BufferedOutputStream out =
   new BufferedOutputStream(new FileOutputStream(file));
 try {
  storeLocal(out);
 } finally {
  out.close();
 }
}

代码示例来源:origin: com.linkedin.azkaban/azkaban

/**
 * Store only those properties defined at this local level
 * 
 * @param file
 *            The file to write to
 * @throws IOException
 *             If the file can't be found or there is an io error
 */
public void storeLocal(File file) throws IOException {
  BufferedOutputStream out = new BufferedOutputStream(
      new FileOutputStream(file));
  try {
    storeLocal(out);
  } finally {
    out.close();
  }
}

代码示例来源:origin: com.linkedin.azkaban/azkaban

props.storeLocal(outputFile);

相关文章