public class FilePreviewer extends Object
| Constructor and Description |
|---|
FilePreviewer() |
| Modifier and Type | Method and Description |
|---|---|
protected static LinkPreview |
getImagePreview(String fileName,
String path2Image,
String httpUrl,
String mimeType) |
protected static LinkPreview |
getPdfPreview(String fileName,
String path2Pdf,
String httpUrl,
String mimeType) |
protected static LinkPreview |
getUnhandledTypePreview(String fileName,
String path2Pdf,
String httpUrl,
String mimeType) |
protected static LinkPreview getPdfPreview(String fileName, String path2Pdf, String httpUrl, String mimeType) throws Exception
fileName - thename of the filepath2Pdf - the path of the pdf filehttpUrl - the http url where the file is reachable atExceptionprotected static LinkPreview getImagePreview(String fileName, String path2Image, String httpUrl, String mimeType)
fileName - thename of the filepath2Image - the path of the image filehttpUrl - the http url where the file is reachable atExceptionprotected static LinkPreview getUnhandledTypePreview(String fileName, String path2Pdf, String httpUrl, String mimeType) throws Exception
fileName - thename of the filepath2Pdf - the path of the pdf filehttpUrl - the http url where the file is reachable atExceptionCopyright © 2014. All Rights Reserved.