public class PdfThumbnailProvider extends java.lang.Object implements ThumbnailProvider
| Constructor and Description |
|---|
PdfThumbnailProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
applies(org.apache.sling.api.resource.Resource resource)
Returns true if the ThumbnailProvider applies for the specified resource.
|
java.io.InputStream |
getThumbnail(org.apache.sling.api.resource.Resource resource)
Get the thumbnail from the specified resource.
|
public boolean applies(org.apache.sling.api.resource.Resource resource)
ThumbnailProviderapplies in interface ThumbnailProviderresource - the resource to checkpublic java.io.InputStream getThumbnail(org.apache.sling.api.resource.Resource resource)
throws java.io.IOException
ThumbnailProvidergetThumbnail in interface ThumbnailProviderresource - the resource from which to retrieve the thumbnailjava.io.IOException - an exception occurs retrieving the thumbnailCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.