|Modifier and Type||Method and Description|
Gather available operations for the specified FileObject and put them into specified operationsList.
Get implementation for a given FileObject and FileOperation interface.
void collectOperations(Collection<Class<? extends FileOperation>> operationsList, FileObject file) throws FileSystemException
operationsList- the list of available operations for the specified FileObject. The operationList contains classes of available operations, e.g. Class objects.
file- the FileObject for which we want to get the list of available operations.
FileSystemException- if list of operations cannot be retrieved.
FileOperation getOperation(FileObject file, Class<? extends FileOperation> operationClass) throws FileSystemException
file- the FileObject for which we need a operation.
operationClass- the Class which instance we are needed.
FileSystemException- if operation cannot be retrieved.
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.