|Modifier and Type||Method and Description|
Gather available operations for the specified FileObject and put them into specified operationsList.
void collectOperations(Collection<Class<? extends FileOperation>> operationsList, FileObject file) throws FileSystemException
operationsList- the list of available operations for the specivied 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 cannto 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–2014 The Apache Software Foundation. All rights reserved.