org.apache.cxf.helpers.FileUtils.delete()方法的使用及代码示例

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

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

FileUtils.delete介绍

暂无

代码示例

代码示例来源:origin: apache/cxf

private synchronized void deleteTempFile() {
  if (tempFile != null) {
    File file = tempFile;
    tempFile = null;
    FileUtils.delete(file);
  }
}
private void maybeDeleteTempFile(Object stream) {

代码示例来源:origin: org.apache.cxf/cxf-api

private synchronized void deleteTempFile() {
  if (tempFile != null) {
    File file = tempFile;
    tempFile = null;
    FileUtils.delete(file);
  }
}
private void maybeDeleteTempFile(Object stream) {

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

private synchronized void deleteTempFile() {
  if (tempFile != null) {
    File file = tempFile;
    tempFile = null;
    FileUtils.delete(file);
  }
}
private void maybeDeleteTempFile(Object stream) {

代码示例来源:origin: apache/cxf

public static void delete(File f) {
  delete(f, false);
}
public static void delete(File f, boolean inShutdown) {

代码示例来源:origin: org.apache.cxf/cxf-core

private synchronized void deleteTempFile() {
  if (tempFile != null) {
    File file = tempFile;
    tempFile = null;
    FileUtils.delete(file);
  }
}
private boolean maybeDeleteTempFile(Object stream) {

代码示例来源:origin: org.apache.cxf/cxf-core

private synchronized void deleteTempFile() {
  if (tempFile != null) {
    File file = tempFile;
    tempFile = null;
    FileUtils.delete(file);
  }
}
private void maybeDeleteTempFile(Object stream) {

代码示例来源:origin: org.apache.cxf/cxf-api

public static void delete(File f) {
  delete(f, false);
}
public static void delete(File f, boolean inShutdown) {

代码示例来源:origin: org.apache.cxf/cxf-api

private synchronized void deleteTempFile() {
  if (tempFile != null) {
    File file = tempFile;
    tempFile = null;
    FileUtils.delete(file);
  }
}
private void maybeDeleteTempFile(Object stream) {

代码示例来源:origin: apache/cxf

private synchronized void deleteTempFile() {
  if (tempFile != null) {
    File file = tempFile;
    tempFile = null;
    FileUtils.delete(file);
  }
}
private boolean maybeDeleteTempFile(Object stream) {

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

public static void delete(File f) {
  delete(f, false);
}
public static void delete(File f, boolean inShutdown) {

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

private synchronized void deleteTempFile() {
  if (tempFile != null) {
    File file = tempFile;
    tempFile = null;
    FileUtils.delete(file);
  }
}
private void maybeDeleteTempFile(Object stream) {

代码示例来源:origin: org.apache.cxf/cxf-core

public static void delete(File f) {
  delete(f, false);
}
public static void delete(File f, boolean inShutdown) {

代码示例来源:origin: org.apache.cxf/cxf-common-utilities

public static void delete(File f) {
  delete(f, false);
}
public static void delete(File f, boolean inShutdown) {

代码示例来源:origin: org.apache.cxf/cxf-core

private static void removeDir(File d, boolean inShutdown) {
  String[] list = d.list();
  if (list == null) {
    list = new String[0];
  }
  for (int i = 0; i < list.length; i++) {
    String s = list[i];
    File f = new File(d, s);
    if (f.isDirectory()) {
      removeDir(f, inShutdown);
    } else {
      delete(f, inShutdown);
    }
  }
  delete(d, inShutdown);
}

代码示例来源:origin: apache/cxf

private static void removeDir(File d, boolean inShutdown) {
  String[] list = d.list();
  if (list == null) {
    list = new String[0];
  }
  for (int i = 0; i < list.length; i++) {
    String s = list[i];
    File f = new File(d, s);
    if (f.isDirectory()) {
      removeDir(f, inShutdown);
    } else {
      delete(f, inShutdown);
    }
  }
  delete(d, inShutdown);
}

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

private static void removeDir(File d, boolean inShutdown) {
  String[] list = d.list();
  if (list == null) {
    list = new String[0];
  }
  for (int i = 0; i < list.length; i++) {
    String s = list[i];
    File f = new File(d, s);
    if (f.isDirectory()) {
      removeDir(f, inShutdown);
    } else {
      delete(f, inShutdown);
    }
  }
  delete(d, inShutdown);
}

代码示例来源:origin: org.apache.cxf/cxf-api

private static void removeDir(File d, boolean inShutdown) {
  String[] list = d.list();
  if (list == null) {
    list = new String[0];
  }
  for (int i = 0; i < list.length; i++) {
    String s = list[i];
    File f = new File(d, s);
    if (f.isDirectory()) {
      removeDir(f, inShutdown);
    } else {
      delete(f, inShutdown);
    }
  }
  delete(d, inShutdown);
}

代码示例来源:origin: org.apache.cxf/cxf-common-utilities

private static void removeDir(File d, boolean inShutdown) {
  String[] list = d.list();
  if (list == null) {
    list = new String[0];
  }
  for (int i = 0; i < list.length; i++) {
    String s = list[i];
    File f = new File(d, s);
    if (f.isDirectory()) {
      removeDir(f, inShutdown);
    } else {
      delete(f, inShutdown);
    }
  }
  delete(d, inShutdown);
}

代码示例来源:origin: apache/cxf

private void parseSchemas(SchemaCompiler schemaCompiler) {
  for (String ns : context.getNamespacePackageMap().keySet()) {
    File file = JAXBUtils.getPackageMappingSchemaBindingFile(ns, context.mapPackageName(ns));
    try {
      InputSource ins = new InputSource(file.toURI().toString());
      schemaCompiler.parseSchema(ins);
    } finally {
      FileUtils.delete(file);
    }
  }
  if (context.getPackageName() != null) {
    schemaCompiler.setDefaultPackageName(context.getPackageName());
  }
}

代码示例来源:origin: org.apache.cxf/cxf-tools-wsdlto-databinding-jaxb

private void parseSchemas(SchemaCompiler schemaCompiler) {
  for (String ns : context.getNamespacePackageMap().keySet()) {
    File file = JAXBUtils.getPackageMappingSchemaBindingFile(ns, context.mapPackageName(ns));
    try {
      InputSource ins = new InputSource(file.toURI().toString());
      schemaCompiler.parseSchema(ins);
    } finally {
      FileUtils.delete(file);
    }
  }
  if (context.getPackageName() != null) {
    schemaCompiler.setDefaultPackageName(context.getPackageName());
  }
}

相关文章