D - the type of the document handlerpublic class DocumentHandlerDescriptor<D> extends AbstractDataHandlerDescriptor<D>
| Constructor and Description | 
|---|
DocumentHandlerDescriptor()  | 
| Modifier and Type | Method and Description | 
|---|---|
D | 
createDocumentHandler(Path filePath)
Creates a document handler for the specified file path. 
 | 
String | 
getMimeType()
Gets the MIME type. 
 | 
void | 
setMimeType(String mimeType)
Sets the MIME type. 
 | 
getDataHandlerClass, getIcon, getResourceLoader, setDataHandlerClass, setIcon, setResourceLoaderpublic String getMimeType()
public void setMimeType(String mimeType)
mimeType - the mimeTypepublic D createDocumentHandler(Path filePath) throws NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException
Path argument.filePath - the file pathNoSuchMethodException - if no constructor with a single Path argument can be foundInstantiationException - if the instance cannot be createdIllegalAccessException - if the instance cannot be createdInvocationTargetException - if the instance cannot be createdCopyright © 2012–2016 Drombler. All rights reserved.