public class FileUtils extends Object
| Constructor and Description |
|---|
FileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
openFile(Path fileToOpen,
FileExtensionDescriptorRegistry fileExtensionDescriptorRegistry,
DocumentHandlerDescriptorRegistry documentHandlerDescriptorRegistry)
Opens a file.
|
public static void openFile(Path fileToOpen, FileExtensionDescriptorRegistry fileExtensionDescriptorRegistry, DocumentHandlerDescriptorRegistry documentHandlerDescriptorRegistry)
FileExtensionDescriptorRegistry if there is any registered FileExtensionDescriptor for the file extension of the file open. If one is registered it looks in the
DocumentHandlerDescriptorRegistry if there is any DocumentHandlerDescriptor for the associated MIME type. It then tries to create a Document Handler for the specified file path
and looks if there's an Openable registered in its local Context. If it finds an Openable it calls Openable.open().fileToOpen - the path to the file to open.fileExtensionDescriptorRegistry - the file extension descriptor registrydocumentHandlerDescriptorRegistry - the document handler descriptor registryOpenable.open()Copyright © 2012–2016 Drombler. All rights reserved.