public final class FileObjectUtils extends Object
| 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,
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, Class<?> wantedClass) throws FileSystemException
fileObject - The FileObject.wantedClass - The Class to check.FileSystemException - if an error occurs.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.