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

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

Introduction

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

Prototype

FileOperations getFileOperations() throws FileSystemException;

Source Link

Usage

From source file:org.anarres.filechooser.impl.vfs2.VFSJFileChooserTest.java

private static void print(@Nonnull FileObject file) {
    try {//from   w  w w  .  j av  a 2 s.  co  m
        LOG.info("Selected file is " + file);
        if (file == null)
            return;
        LOG.info("Selected size is " + file.getContent().getSize());
        LOG.info("Selected operations is " + file.getFileOperations());
    } catch (FileSystemException e) {
        LOG.info("Exception is " + e);
    }
}