fop 0.95

org.apache.fop.fonts
Class CachedFontInfo

java.lang.Object
  extended by org.apache.fop.fonts.EmbedFontInfo
      extended by org.apache.fop.fonts.CachedFontInfo
All Implemented Interfaces:
java.io.Serializable

public class CachedFontInfo
extends EmbedFontInfo

Font info stored in the cache

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.fop.fonts.EmbedFontInfo
embedFile, fontTriplets, kerning, metricsFile
 
Constructor Summary
CachedFontInfo(EmbedFontInfo fontInfo)
          Constructor
CachedFontInfo(java.lang.String metricsFile, boolean kerning, java.util.List fontTriplets, java.lang.String embedFile, long lastModified)
          Default constructor
 
Method Summary
static java.io.File getFileFromUrls(java.lang.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)
 java.lang.String toString()
          
 
Methods inherited from class org.apache.fop.fonts.EmbedFontInfo
getEmbedFile, getFontTriplets, getKerning, getMetricsFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CachedFontInfo

public CachedFontInfo(java.lang.String metricsFile,
                      boolean kerning,
                      java.util.List fontTriplets,
                      java.lang.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 Detail

getFileFromUrls

public static java.io.File getFileFromUrls(java.lang.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 java.lang.String toString()
Description copied from class: EmbedFontInfo

Overrides:
toString in class EmbedFontInfo
Returns:
string representation of this object

fop 0.95

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