List of usage examples for org.apache.commons.vfs2 FileObject getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
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()); }