org.apache.commons.vfs.util
Class FileObjectUtils

java.lang.Object
  extended byorg.apache.commons.vfs.util.FileObjectUtils

public class FileObjectUtils
extends 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

Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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,
                                   Class wantedClass)
                            throws FileSystemException
check if the given FileObject is instance of given class argument

Throws:
FileSystemException


Copyright © 2002-2006 The Apache Software Foundation. All Rights Reserved.