/**
* Main constructor
- * @param fontInfoConfig the configuration object
* @param fontManager the font manager
* @param listener the font event listener
* @param strict true if an Exception should be thrown if an error is found.
}
/**
- * Retrieve the last modified date/time of a URL.
+ * Retrieve the last modified date/time of a URI.
*
- * @param url
- * the URL
+ * @param uri the URI
* @return the last modified date/time
*/
public static long getLastModified(URI uri) {
/**
* Whether or not to cache results of font triplet detection/auto-config
- * @param useCache use cache or not
*/
public void disableFontCache() {
fontCacheManager = FontCacheManagerFactory.createDisabled();
/**
* Deletes the current FontCache file
- * @return Returns true if the font cache file was successfully deleted.
- * @throws FOPException -
+ * @throws FOPException if an error was thrown while deleting the cache
*/
public void deleteCache() throws FOPException {
fontCacheManager.delete(getCacheFile(true));
/**
* @return {@link org.apache.fop.area.inline.UnresolvedPageNumber#FIRST} or
- * {@linkorg.apache.fop.area.inline.UnresolvedPageNumber#LAST}
+ * {@link org.apache.fop.area.inline.UnresolvedPageNumber#LAST}
*/
protected abstract boolean getReferenceType();
/**
* Returns an instance of a StreamCacheFactory with the requested features.
- * @param cacheToFile True if file shall be cached using a temporary file
* @return StreamCacheFactory the requested factory
*/
public static StreamCacheFactory getInstance() {
public abstract String[] getSupportedMimeTypes();
/**
- * Returns a renderer config object that can be used to
- * configure the renderer.
+ * Configures a given renderer using the appropriate configurator.
+ *
* @param userAgent user agent
- * @return a config object that can be used to configure the renderer
+ * @param renderer the renderer that is to be configured
*/
public abstract void configureRenderer(FOUserAgent userAgent, Renderer renderer)
throws FOPException;
/**
* Configures a intermediate format document handler.
+ *
* @param documentHandler the document handler instance
* @throws FOPException if an error occurs while configuring the object
*/
/**
* Sets up the {@link FontInfo} object for the IFDocumentHandler.
- * @param documentHandler the document handler instance
+ *
+ * @param mimeType the MIME type of the document handler
* @param fontInfo the font info object to set up
* @throws FOPException if an error occurs while configuring the object
*/
void setupFontInfo(String mimeType, FontInfo fontInfo) throws FOPException;
-
}
public enum PSRendererOption implements RendererConfigOption {
/** Indicates whether landscape pages should be rotated, default: false */
AUTO_ROTATE_LANDSCAPE("auto-rotate-landscape", false),
- /** Sets the PostScript language leven, default: {@see PSGenerator#DEFAULT_LANGUAGE_LEVEL}*/
+ /** Sets the PostScript language level, default: {@link PSGenerator#DEFAULT_LANGUAGE_LEVEL} */
LANGUAGE_LEVEL("language-level", PSGenerator.DEFAULT_LANGUAGE_LEVEL),
/** Whether resources should be optimized in a post-processing run, default: false */
OPTIMIZE_RESOURCES("optimize-resources", false),
* If that fails null is returned.
*
* @param profileName the profile name
- * @param base a base URI to resolve relative URIs
- * @param iccProfileSrc ICC Profile source to return a ColorSpace for
+ * @param iccProfileSrc ICC Profile source to return a ColorSpace
* @param renderingIntent overriding rendering intent
* @return ICC ColorSpace object or null if ColorSpace could not be created
*/
- public ColorSpace get(String profileName, String iccProfileSrc,
- RenderingIntent renderingIntent) {
+ public ColorSpace get(String profileName, String iccProfileSrc, RenderingIntent renderingIntent) {
String key = profileName + ":" + iccProfileSrc;
// TODO: This stuff needs some TLC, fix it!!
ColorSpace colorSpace = null;