Class LocalizedPropertyUtil


  • public final class LocalizedPropertyUtil
    extends java.lang.Object
    Ant UTF-8 based reader util for loading properties.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void fillProperties​(java.util.Properties props, org.springframework.core.io.Resource resource)
      Fill the given properties from the given resource.
      static java.util.Properties loadProperties​(org.springframework.core.io.Resource resource)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • loadProperties

        public static java.util.Properties loadProperties​(org.springframework.core.io.Resource resource)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • fillProperties

        public static void fillProperties​(java.util.Properties props,
                                          org.springframework.core.io.Resource resource)
                                   throws java.io.IOException
        Fill the given properties from the given resource.
        Parameters:
        props - the Properties instance to fill
        resource - the resource to load from
        Throws:
        java.io.IOException - if loading failed