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