com.groupdocs.viewer.handlers
Class DocumentHandler

java.lang.Object
  extended by com.groupdocs.viewer.handlers.DocumentHandler

public class DocumentHandler
extends Object

Provides few functionality to work with files
Such as: get file type, file extension and document type

Author:
Alex Bobkov

Constructor Summary
DocumentHandler(String guid)
          Creating document object handler for specified file
 
Method Summary
 String getDocumentType()
          Get document type
 String getFileType()
          Get file type by file extention
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentHandler

public DocumentHandler(String guid)
Creating document object handler for specified file

Parameters:
guid - File id or file path
Method Detail

getDocumentType

public String getDocumentType()
Get document type

Returns:
Document type
See Also:
DocumentType

getFileType

public String getFileType()
Get file type by file extention

Returns:
File type
See Also:
com.groupdocs.viewer.handlers.InputDataHandler#getFileType(java.lang.String)


Copyright © 2014. All rights reserved.