Interface PropertyManager

  • All Known Implementing Classes:
    ServletContextPropertyManager

    public interface PropertyManager
    This interface defines an object which can be used to set values to be used to control the PDF library - turning on or off debug flags, controlling the location of additional software and so on. Until 2.8.5 this class didn't exist and these values were determined by calling System.getProperty(nnn) instead, but this class allows those values to be more easily specified in servlets, applets and other environments where modifying the System properties isn't always appropriate or possible.
    Since:
    2.8.5
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static PropertyManager SYSTEM
      Defines a PropertyManager which checks the System.getProperty(java.lang.String) method.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getProperty​(java.lang.String key)
      Return the specified property, or null if no such property is set.
      java.net.URL getURLProperty​(java.lang.String key)
      Return the specified property as a URL, or null if no such property is set.
    • Field Detail

      • SYSTEM

        static final PropertyManager SYSTEM
        Defines a PropertyManager which checks the System.getProperty(java.lang.String) method. A call to getProperty(key) will return the value of System.getProperty("org.faceless.pdf2."+key). This PropertyManager is the default one used by the PDF library.
    • Method Detail

      • getProperty

        java.lang.String getProperty​(java.lang.String key)
        Return the specified property, or null if no such property is set.
      • getURLProperty

        java.net.URL getURLProperty​(java.lang.String key)
                             throws java.net.MalformedURLException
        Return the specified property as a URL, or null if no such property is set.
        Throws:
        java.net.MalformedURLException