public final class FileObjectUtils
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
FileObjectUtils() |
Modifier and Type | Method and Description |
---|---|
static AbstractFileObject |
getAbstractFileObject(FileObject fileObject)
Get access to the base object even if decorated.
|
static boolean |
isInstanceOf(FileObject fileObject,
java.lang.Class<?> wantedClass)
Check if the given FileObject is instance of given class argument.
|
public static AbstractFileObject getAbstractFileObject(FileObject fileObject) throws FileSystemException
fileObject
- The FileObject.FileSystemException
- if an error occurs.public static boolean isInstanceOf(FileObject fileObject, java.lang.Class<?> wantedClass) throws FileSystemException
fileObject
- The FileObject.wantedClass
- The Class to check.FileSystemException
- if an error occurs.