Class FileObjectUtils


  • public final class FileObjectUtils
    extends java.lang.Object
    Stuff to get some strange things from an FileObject.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isInstanceOf

        public static boolean isInstanceOf​(FileObject fileObject,
                                           java.lang.Class<?> wantedClass)
                                    throws FileSystemException
        Check if the given FileObject is instance of given class argument.
        Parameters:
        fileObject - The FileObject.
        wantedClass - The Class to check.
        Returns:
        true if fileObject is an instance of the specified Class.
        Throws:
        FileSystemException - if an error occurs.