public class TikaFallbackProvider extends Object implements ThumbnailProvider
Constructor and Description |
---|
TikaFallbackProvider() |
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.
|
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)
ThumbnailProvider
applies
in interface ThumbnailProvider
resource
- the resource to checkpublic InputStream getThumbnail(org.apache.sling.api.resource.Resource resource) throws IOException
ThumbnailProvider
getThumbnail
in interface ThumbnailProvider
resource
- the resource from which to retrieve the thumbnailIOException
- an exception occurs retrieving the thumbnailCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.