public class PrefixRenditionPicker extends java.lang.Object implements DriveRenditionPicker
RenditionPicker that picks the first rendition found which name
starts with a given prefix.| Constructor and Description |
|---|
PrefixRenditionPicker() |
PrefixRenditionPicker(java.lang.String startsWith)
Picks the first rendition found which name starts with the given prefix.
|
PrefixRenditionPicker(java.lang.String prefix,
boolean returnOriginal)
Picks the first rendition found which name starts with the given prefix.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId() |
Resource |
getPreviewRendition(java.util.List<Resource> renditions) |
Resource |
getRendition(java.util.Iterator<Resource> renditions) |
Resource |
getThumbnailRendition(java.util.List<Resource> renditions) |
public PrefixRenditionPicker(java.lang.String startsWith)
null will be returned.startsWith - the name prefix to matchpublic PrefixRenditionPicker()
public PrefixRenditionPicker(java.lang.String prefix,
boolean returnOriginal)
null).prefix - the name prefix to matchreturnOriginal - if true, will return the original rendition if no
matching rendition was found, otherwise the picker will return
nullpublic java.lang.String getId()
public Resource getPreviewRendition(java.util.List<Resource> renditions)
getPreviewRendition in interface DriveRenditionPickerpublic Resource getThumbnailRendition(java.util.List<Resource> renditions)
getThumbnailRendition in interface DriveRenditionPicker"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"