cbr.service
Interface PicsSource

All Known Implementing Classes:
PictureDB, URLPicsSource

public interface PicsSource

This interface is implemented by classes that provide access to pictures and thumbnails. In particular a service with this interface is provided by all picture providers such as photo agencies. This service is used by indexing agents that index image collections on behalf of a broker.

Version:
"$Id: PicsSource.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Volker Roth

Method Summary
 byte[] getPicture(String name)
          Retrieves a picture based on the name.
 byte[] getThumbnail(String name)
          Retrieves a thumbnail based on the name.
 Iterator iterator()
          Returns a list of names of pictures that can be requested.
 

Method Detail

iterator

public Iterator iterator()
Returns a list of names of pictures that can be requested.

Returns:
The list of names of pictures available.

getPicture

public byte[] getPicture(String name)
Retrieves a picture based on the name.

Parameters:
name - The name of the picture. This name must be locally unique.
Returns:
The encoding of the picture with the given name.

getThumbnail

public byte[] getThumbnail(String name)
Retrieves a thumbnail based on the name.

Parameters:
name - The name of the picture. This name must be locally unique.
Returns:
The encoding of the picture with the given name.


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.