本文整理了Java中org.apache.wicket.util.file.File.createTempFile()
方法的一些代码示例,展示了File.createTempFile()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。File.createTempFile()
方法的具体详情如下:
包路径:org.apache.wicket.util.file.File
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!