|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ORG.oclc.webz.ImageInfo
The ImageInfo class is a utility class to maintain page navigation information for retrival of binary images from a newton database. It provides methods to save and retrieve the data. It is used by the ImageFETCH Verb.
Field Summary | |
int |
count
integer data type containing the number of images in the record. |
protected ORG.oclc.webz.ImageEntry[] |
entries
ImageEntry array of objects for a record describing the type of image, the key for database retrieval, and the item number within the record. |
protected String |
imageRootPath
String data type containing the http address of the web server handling the delivery of the images. |
protected DataPairs |
info
DataPairs object containing information about the record containing the image, such as dbname= |
Constructor Summary | |
ImageInfo(DataDir dir,
String path,
DataPairs info)
Constructs an ImageInfo object for the input DataDir record object by creating retrieval keys to all the nodes matching the input path. |
|
ImageInfo(DataDir dir,
String path,
String httpImagesRootLocation,
DataPairs info)
Constructs an ImageInfo object for the input DataDir record object by creating retrieval keys to all the nodes matching the input path. |
Method Summary | |
String |
cookie(int whichImage)
Retrieves a String containing the magic-cookie string to use in the Z39.50 present request to retrieve the image. |
String |
dbKey(int whichImage)
Retrieves a String containing the key for retrieving a particular image from the database. |
String |
dbname()
Retrieves a String containing the database name for the image. |
String |
filename(int whichImage)
Retrieves a String containing the relative filename of the image when the data is NOT stored in a newton database. |
String |
getGifFile(int whichImage,
int scale)
Retrieves a String containing the name of the file that contains the gif image already converted to tiff. |
DataPairs |
getInfo()
Retrieves a DataPairs object containing information about the image. |
int |
recno()
Retrieves an integer containing the database record number. |
void |
setGifFile(String filename,
int whichImage,
int scale)
Sets the name of file that contains the gif image if available for the input image item number and scale. |
String |
thumbnailFilename(int whichImage)
Retrieves a String containing the relative filename for the thumbnail of the image when the data is NOT stored in a newton database. |
String |
toString()
Generates a String representation of the object. |
String |
type(int whichImage)
Retrieves a String containing the type of image for the image entry (GIF, JPEG for example). |
void |
updateInfo(DataDir dir,
String path,
DataPairs info)
Updates the ImageInfo object for the input DataDir record object by creating retrieval keys to all the nodes matching the input path. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected ORG.oclc.webz.ImageEntry[] entries
public int count
protected DataPairs info
protected String imageRootPath
Constructor Detail |
public ImageInfo(DataDir dir, String path, DataPairs info)
DataDir
- the DataDir object for the database recordpath
- the path to the images in the recordpublic ImageInfo(DataDir dir, String path, String httpImagesRootLocation, DataPairs info)
DataDir
- the DataDir object for the database recordpath
- the path to the images in the recordhttpImagesRootLocation
- the root directory for the images
when accessing them via http://Method Detail |
public void updateInfo(DataDir dir, String path, DataPairs info)
DataDir
- the DataDir object for the database recordpath
- the path to the images in the recordpublic DataPairs getInfo()
public String dbname()
public int recno()
public String dbKey(int whichImage)
whichImage
- the image item number from the recordpublic String filename(int whichImage)
whichImage
- the image item number from the recordpublic String thumbnailFilename(int whichImage)
whichImage
- the image item number from the recordpublic String type(int whichImage)
whichImage
- the image item number from the recordpublic String cookie(int whichImage)
whichImage
- the image item number from the recordpublic String getGifFile(int whichImage, int scale)
whichImage
- the image item number from the recordscale
- the scale of the converted imagepublic void setGifFile(String filename, int whichImage, int scale)
filename
- the name of the filewhichImage
- the image item number from the recordscale
- the scale of the converted imagepublic String toString()
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |