org.apache.wicket.util.file.File.createTempFile()方法的使用及代码示例

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

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

File.createTempFile介绍

暂无

代码示例

代码示例来源:origin: org.opensingular/singular-requirement-module

@Nonnull
private java.io.File makeZip(IModel<URI> logUriModel) throws IOException {
  byte[]       buffer  = new byte[1024];
  Path         logPath = Paths.get(logUriModel.getObject());
  java.io.File zip     = File.createTempFile("log", ".zip");
  try (FileOutputStream fos = new FileOutputStream(zip)) {
    makeZip(buffer, logPath, fos);
  }
  return zip;
}

代码示例来源:origin: org.opensingular/singular-requirement-commons

@Nonnull
private java.io.File makeZip(IModel<URI> logUriModel) throws IOException {
  byte[]       buffer  = new byte[1024];
  Path         logPath = Paths.get(logUriModel.getObject());
  java.io.File zip     = File.createTempFile("log", ".zip");
  try (FileOutputStream fos = new FileOutputStream(zip)) {
    makeZip(buffer, logPath, fos);
  }
  return zip;
}

代码示例来源:origin: org.opensingular/singular-server-commons

@Nonnull
private java.io.File makeZip(IModel<URI> logUriModel) throws IOException {
  byte[]       buffer  = new byte[1024];
  Path         logPath = Paths.get(logUriModel.getObject());
  java.io.File zip     = File.createTempFile("log", ".zip");
  try (FileOutputStream fos = new FileOutputStream(zip)) {
    makeZip(buffer, logPath, fos);
  }
  return zip;
}

相关文章