パッケージ org.pcap4j.util

クラス PropertiesLoader


  • public class PropertiesLoader
    extends Object
    導入されたバージョン:
    pcap4j 0.9.1
    作成者:
    Kaito Yamada
    • コンストラクタの詳細

      • PropertiesLoader

        public PropertiesLoader​(String resourceName,
                                boolean systemPropertiesOverPropertiesFile,
                                boolean caching)
        パラメータ:
        resourceName - resourceName
        systemPropertiesOverPropertiesFile - systemPropertiesOverPropertiesFile
        caching - caching
    • メソッドの詳細

      • getResourceName

        public final String getResourceName()
        戻り値:
        resource name
      • getProp

        public final Properties getProp()
        戻り値:
        a new Properties object containing properties loaded by this object.
      • isSystemPropertiesOverPropertiesFile

        public final boolean isSystemPropertiesOverPropertiesFile()
        戻り値:
        true if this object gives priority to the system properties over the properties loaded by this object; false otherwise.
      • isCaching

        public final boolean isCaching()
        戻り値:
        true if this object is caching values of properties; false otherwise.
      • getString

        public String getString​(String key,
                                String defaultValue)
        パラメータ:
        key - key
        defaultValue - defaultValue
        戻り値:
        a value got from a specified key.
      • getInteger

        public Integer getInteger​(String key,
                                  Integer defaultValue)
        パラメータ:
        key - key
        defaultValue - defaultValue
        戻り値:
        an Integer object converted from a value got from a specified key.
      • getBoolean

        public Boolean getBoolean​(String key,
                                  Boolean defaultValue)
        パラメータ:
        key - key
        defaultValue - defaultValue
        戻り値:
        a Boolean object converted from a value got from a specified key.
      • getClass

        public <T> Class<? extends T> getClass​(String key,
                                               Class<? extends T> defaultValue)
        型パラメータ:
        T - class
        パラメータ:
        key - key
        defaultValue - defaultValue
        戻り値:
        a Class object converted from a value got from a specified key.
      • getInetAddress

        public InetAddress getInetAddress​(String key,
                                          InetAddress defaultValue)
        パラメータ:
        key - key
        defaultValue - defaultValue
        戻り値:
        an InetAddress object converted from a value got from a specified key.
      • getIntArray

        public int[] getIntArray​(String key,
                                 int[] defaultValue)
        パラメータ:
        key - key
        defaultValue - defaultValue
        戻り値:
        an int array converted from a value got from a specified key.
      • clearCache

        public final void clearCache()