Package org.zefer.cache
Class ResourceCache
- java.lang.Object
-
- org.zefer.cache.ResourceCache
-
public class ResourceCache extends Object
-
-
Constructor Summary
Constructors Constructor Description ResourceCache(String protocols, String extensions, String sessionID, Object ctx, CookieManager cm, String ttfDir, String serif, String sansserif, String monospace, Properties extraProperties, boolean disable, boolean debug)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddInlineResource(String id, org.zefer.html.doc.IncludeElement element)intallocateFontNr()voidcleanInlineResources()static voidclearCache()StringgetDefaultMonospace()StringgetDefaultSansSerif()StringgetDefaultSerif()URLgetDocumentBase()org.zefer.html.doc.view.PD4ImageWrappergetDynamicImage(String tagName, int width, int height, String id, HashMap attributes, String onBodyLoad, Vector scriptSections, boolean asIs)PropertiesgetExtraProperties()org.zefer.font.PD4FontMetricsgetFontMetrics(String[] faces, int style, float size, boolean isPdfGeneration, String sampleText)org.zefer.html.doc.view.PD4ImageWrappergetImage(String pathToObject, boolean asJavaImage)org.zefer.html.doc.view.PD4ImageWrappergetImage(String pathToObject, String originalRef, boolean asJavaImage, int baseWidth, int baseHeight, boolean asIs)byte[]getObject(String pathToObject)byte[]getObject(String pathToObject, boolean internal)byte[]getObject(String pathToObject, String pathToObjectSav)byte[]getObject(String pathToObject, String originalPath, boolean suppressSessionID, boolean internal, boolean doNotCache)byte[]getObjectAlternativeWay(String pathToObject, boolean suppressSessionID)org.zefer.html.doc.css.CssRuntime.SizeConvertergetSizeConverter(Double dbl)ImagegetSpacerImage()StringgetTtfDir()booleanignoreCSS(String path, boolean debug)booleanisApplyKerning()booleanisProcessLigatures()voidresetTtfDir()voidsetApplyKerning(boolean applyKerning)voidsetDocumentBase(URL documentBase)voidsetHttpRequest(Object httpRequest, Object httpResponse)voidsetHttpRequest(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)Deprecated.binary compatibility with code compiled against earlier PD4ML versions only; the build marks it synthetic, so compilers do not see it.voidsetPdfa(boolean pdfa)voidsupportComplexScripts(boolean complexScripts)
-
-
-
Constructor Detail
-
ResourceCache
public ResourceCache(String protocols, String extensions, String sessionID, Object ctx, CookieManager cm, String ttfDir, String serif, String sansserif, String monospace, Properties extraProperties, boolean disable, boolean debug)
-
-
Method Detail
-
allocateFontNr
public int allocateFontNr()
-
getSpacerImage
public Image getSpacerImage()
-
getDynamicImage
public org.zefer.html.doc.view.PD4ImageWrapper getDynamicImage(String tagName, int width, int height, String id, HashMap attributes, String onBodyLoad, Vector scriptSections, boolean asIs)
-
getImage
public org.zefer.html.doc.view.PD4ImageWrapper getImage(String pathToObject, boolean asJavaImage)
-
getImage
public org.zefer.html.doc.view.PD4ImageWrapper getImage(String pathToObject, String originalRef, boolean asJavaImage, int baseWidth, int baseHeight, boolean asIs)
-
getObject
public byte[] getObject(String pathToObject)
-
getObject
public byte[] getObject(String pathToObject, boolean internal)
-
getObject
public byte[] getObject(String pathToObject, String originalPath, boolean suppressSessionID, boolean internal, boolean doNotCache)
-
getObjectAlternativeWay
public byte[] getObjectAlternativeWay(String pathToObject, boolean suppressSessionID)
-
getFontMetrics
public org.zefer.font.PD4FontMetrics getFontMetrics(String[] faces, int style, float size, boolean isPdfGeneration, String sampleText)
-
getDefaultMonospace
public String getDefaultMonospace()
-
getDefaultSansSerif
public String getDefaultSansSerif()
-
getDefaultSerif
public String getDefaultSerif()
-
getSizeConverter
public org.zefer.html.doc.css.CssRuntime.SizeConverter getSizeConverter(Double dbl)
-
getTtfDir
public String getTtfDir()
-
resetTtfDir
public void resetTtfDir()
-
setPdfa
public void setPdfa(boolean pdfa)
-
setHttpRequest
public void setHttpRequest(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)Deprecated.binary compatibility with code compiled against earlier PD4ML versions only; the build marks it synthetic, so compilers do not see it. UsesetHttpRequest(Object, Object).
-
setHttpRequest
public void setHttpRequest(Object httpRequest, Object httpResponse)
- Parameters:
httpRequest- javax.servlet or jakarta.servlet HttpServletRequesthttpResponse- javax.servlet or jakarta.servlet HttpServletResponse
-
clearCache
public static void clearCache()
-
getExtraProperties
public Properties getExtraProperties()
-
addInlineResource
public void addInlineResource(String id, org.zefer.html.doc.IncludeElement element)
-
cleanInlineResources
public void cleanInlineResources()
-
ignoreCSS
public boolean ignoreCSS(String path, boolean debug)
-
setDocumentBase
public void setDocumentBase(URL documentBase)
-
getDocumentBase
public URL getDocumentBase()
-
isApplyKerning
public boolean isApplyKerning()
-
isProcessLigatures
public boolean isProcessLigatures()
-
setApplyKerning
public void setApplyKerning(boolean applyKerning)
-
supportComplexScripts
public void supportComplexScripts(boolean complexScripts)
-
-