org.apache.commons.vfs.util
Class FileObjectUtils

java.lang.Object
  extended by org.apache.commons.vfs.util.FileObjectUtils

public class FileObjectUtils
extends java.lang.Object

Stuff to get some strange things from an FileObject

Version:
$Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Mi, 29 Nov 2006) $
Author:
Mario Ivankovits

Constructor Summary
private FileObjectUtils()
           
 
Method Summary
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
 

Constructor Detail

FileObjectUtils

private FileObjectUtils()
Method Detail

getAbstractFileObject

public static AbstractFileObject getAbstractFileObject(FileObject fileObject)
                                                throws FileSystemException
get access to the base object even if decorated

Throws:
FileSystemException

isInstanceOf

public static boolean isInstanceOf(FileObject fileObject,
                                   java.lang.Class wantedClass)
                            throws FileSystemException
check if the given FileObject is instance of given class argument

Throws:
FileSystemException