org.apache.commons.vfs2.operations.FileOperations Java Examples

The following examples show how to use org.apache.commons.vfs2.operations.FileOperations. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FileObject.java    From obevo with Apache License 2.0 5 votes vote down vote up
@Override
public FileOperations getFileOperations() {
    try {
        return this.fileObject.getFileOperations();
    } catch (FileSystemException e) {
        throw new VFSFileSystemException(e);
    }
}
 
Example #2
Source File: AbstractFileObject.java    From commons-vfs with Apache License 2.0 5 votes vote down vote up
/**
 * @return FileOperations interface that provides access to the operations API.
 * @throws FileSystemException if an error occurs.
 */
@Override
public FileOperations getFileOperations() throws FileSystemException {
    if (operations == null) {
        operations = new DefaultFileOperations(this);
    }

    return operations;
}
 
Example #3
Source File: NonAccessibleFileObject.java    From hop with Apache License 2.0 4 votes vote down vote up
@Override
public FileOperations getFileOperations() throws FileSystemException {
  throw new NotImplementedException();
}
 
Example #4
Source File: FileObjectWrapper.java    From otroslogviewer with Apache License 2.0 4 votes vote down vote up
public FileOperations getFileOperations() throws FileSystemException {
  return parent.getFileOperations();
}
 
Example #5
Source File: DecoratedFileObject.java    From commons-vfs with Apache License 2.0 4 votes vote down vote up
@Override
public FileOperations getFileOperations() throws FileSystemException {
    return decoratedFileObject.getFileOperations();
}
 
Example #6
Source File: ConnectionFileObject.java    From pentaho-kettle with Apache License 2.0 4 votes vote down vote up
@Override public FileOperations getFileOperations() throws FileSystemException {
  return resolvedFileObject.getFileOperations();
}
 
Example #7
Source File: NonAccessibleFileObject.java    From pentaho-kettle with Apache License 2.0 4 votes vote down vote up
@Override
public FileOperations getFileOperations() throws FileSystemException {
  throw new NotImplementedException();
}
 
Example #8
Source File: RepositoryVfsFileObject.java    From pentaho-kettle with Apache License 2.0 4 votes vote down vote up
@Override
public FileOperations getFileOperations() throws FileSystemException {
  throw new NotImplementedException();
}
 
Example #9
Source File: FileObject.java    From commons-vfs with Apache License 2.0 2 votes vote down vote up
/**
 * @return FileOperations interface that provides access to the operations API.
 * @throws FileSystemException if an error occurs.
 */
FileOperations getFileOperations() throws FileSystemException;