Example usage for org.apache.commons.vfs2 FileObject getClass

List of usage examples for org.apache.commons.vfs2 FileObject getClass

Introduction

In this page you can find the example usage for org.apache.commons.vfs2 FileObject getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.mycore.backend.filesystem.MCRCStoreVFS.java

@Override
protected void doDeleteContent(String storageId) throws Exception {
    FileObject targetObject = fsManager.resolveFile(getBase(), storageId);
    LOGGER.debug("Delete fired on: " + targetObject);
    LOGGER.debug("targetObject.class = " + targetObject.getClass().getName());
    if (targetObject.delete()) {
        LOGGER.debug("Delete of " + targetObject + " was successful.");
    } else {//  w ww  . java  2  s  .  c  o m
        LOGGER.warn("Delete of " + targetObject + " was NOT successful (w/o errors given).");
    }
}

From source file:org.pentaho.di.core.vfs.AliasedFileObject.java

public static boolean isAliasedFile(FileObject file) {
    return AliasedFileObject.class.isAssignableFrom(file.getClass());
}