org.apache.fop.fonts

Class CachedFontInfo

Implemented Interfaces:
Serializable

public class CachedFontInfo
extends EmbedFontInfo

Font info stored in the cache

Field Summary

Fields inherited from class org.apache.fop.fonts.EmbedFontInfo

embedFile, fontTriplets, kerning, metricsFile

Constructor Summary

CachedFontInfo(String metricsFile, boolean kerning, List fontTriplets, String embedFile, long lastModified)
Default constructor
CachedFontInfo(EmbedFontInfo fontInfo)
Constructor

Method Summary

static File
getFileFromUrls(String[] urls)
Returns a file given a list of urls
long
lastModified()
Gets the modified timestamp for font file (not always available)
void
setLastModified(long lastModified)
Gets the modified timestamp for font file (used for the purposes of font info caching)
String
toString()

Methods inherited from class org.apache.fop.fonts.EmbedFontInfo

getEmbedFile, getFontTriplets, getKerning, getMetricsFile, toString

Constructor Details

CachedFontInfo

public CachedFontInfo(String metricsFile,
                      boolean kerning,
                      List fontTriplets,
                      String embedFile,
                      long lastModified)
Default constructor
Parameters:
metricsFile - metrics file
kerning - kerning
fontTriplets - font triplets
embedFile - embed file
lastModified - timestamp that this font was last modified

CachedFontInfo

public CachedFontInfo(EmbedFontInfo fontInfo)
Constructor
Parameters:
fontInfo - an existing embed font info

Method Details

getFileFromUrls

public static File getFileFromUrls(String[] urls)
Returns a file given a list of urls
Parameters:
urls - array of possible font urls
Returns:
file font file

lastModified

public long lastModified()
Gets the modified timestamp for font file (not always available)
Returns:
modified timestamp

setLastModified

public void setLastModified(long lastModified)
Gets the modified timestamp for font file (used for the purposes of font info caching)
Parameters:
lastModified - modified font file timestamp

toString

public String toString()
Overrides:
toString in interface EmbedFontInfo
Returns:
string representation of this object
See Also:
java.lang.Object.toString()

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.