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 atException
protected static LinkPreview getImagePreview(String fileName, String path2Image, String httpUrl, String mimeType) throws Exception
fileName
- thename of the filepath2Image
- the path of the image filehttpUrl
- the http url where the file is reachable atException
protected 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 atException
Copyright © 2014. All Rights Reserved.