public enum FileUtil extends Enum<FileUtil>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
File |
fileFromClassLoaderResource(String path,
ClassLoader cl)
Creates a
File representation from the given path in the specified ClassLoader |
static FileUtil |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileUtil[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileUtil INSTANCE
public static FileUtil[] values()
for (FileUtil c : FileUtil.values()) System.out.println(c);
public static FileUtil valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic File fileFromClassLoaderResource(String path, ClassLoader cl)
File
representation from the given path in the specified ClassLoader
path
- A pathcl
- A ClassLoader
File
representation from the given path in the specified ClassLoader
Copyright © 2021 JBoss by Red Hat. All rights reserved.