Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.image.cache
Class FileSystemImageCache

java.lang.Object
  |
  +--oracle.cabo.image.cache.FileSystemImageCache
All Implemented Interfaces:
ImageConstants, ImageProvider

public class FileSystemImageCache
extends java.lang.Object
implements ImageProvider, ImageConstants

FileSystemImageCache is an ImageProvider implementation which caches images on the file system. Since the FileSystemImageCache are fairly expensive objects to create, FileSystemImageCache instances are shared across applications in the same VM. Clients can access the shared FileSystemImageCache instance for a particular file system cache location via the getSharedCache method.

See Also:
ImageProvider

Fields inherited from interface oracle.cabo.image.ImageConstants
ACCESS_KEY_KEY, BACKGROUND_KEY, BORDER_COLOR_KEY, BUTTON_NAME, COLORIZED_ICON_NAME, DARK_ACCENT_COLOR_KEY, DARK_COLOR_KEY, DIRECTION_KEY, DISABLED_BACKGROUND_KEY, DISABLED_FONT_KEY, DISABLED_FOREGROUND_KEY, DISABLED_KEY, ENCODING_TYPE_KEY, END_ROUNDED_KEY, FLIPPED_ICON_NAME, FONT_KEY, FOREGROUND_KEY, GLOBAL_BUTTON_NAME, HEIGHT_RESPONSE_KEY, IMAGE_MAP_AREAS_RESPONSE_KEY, IMAGE_PROVIDER_PROPERTY, IMAGE_TYPE_MANAGER_PROPERTY, LAF_KEY, NAME_KEY, SELECTED_BACKGROUND_KEY, SELECTED_FONT_KEY, SELECTED_FOREGROUND_KEY, SELECTED_INDEX_KEY, SELECTED_KEY, SERVLET_URL_PROPERTY, SOURCE_INPUT_STREAM_PROVIDER_KEY, SOURCE_KEY, START_ROUNDED_KEY, SURROUNDING_COLOR_KEY, TAB_BAR_NAME, TABS_KEY, TECATE_NAMESPACE, TEXT_ANTIALIAS_KEY, TEXT_KEY, WIDTH_RESPONSE_KEY
 
Constructor Summary
protected FileSystemImageCache(java.lang.String realPath)
          Creates a FileSystemImageCache.
 
Method Summary
 ImageProviderResponse getImage(ImageContext context, ImageProviderRequest request)
          Implementation of ImageCache.getImage().
static ImageProvider getSharedCache(java.lang.String realPath)
          Returns a shared cache instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemImageCache

protected FileSystemImageCache(java.lang.String realPath)
Creates a FileSystemImageCache. Clients should use getSharedCache() to obtain FileSystemImageCache instances.
Parameters:
realPath - The real path of the root directory of the cache. If the specified path does not exist and can not be created, and IllegalArgumentException is thrown.
Method Detail

getSharedCache

public static ImageProvider getSharedCache(java.lang.String realPath)
Returns a shared cache instance.
Parameters:
realPath - The real path of the root directory of the cache. If the specified path does not exist and can not be created, and IllegalArgumentException is thrown.
Returns:
Returns an ImageProvider instance which can be used to obtain cached images.

getImage

public ImageProviderResponse getImage(ImageContext context,
                                      ImageProviderRequest request)
Implementation of ImageCache.getImage().
Specified by:
getImage in interface ImageProvider
See Also:
ImageProvider.getImage(oracle.cabo.image.ImageContext, oracle.cabo.image.ImageProviderRequest)

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.