Class PropertiesLoader


  • public class PropertiesLoader
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.String escapifyStr​(java.lang.String str)  
      private char hexDigit​(char ch, int offset)  
      java.util.Properties loadProperties​(java.io.InputStream is, java.lang.String encoding)
      Load properties from an input stream using the specified encoding.
      • Methods inherited from class java.lang.Object

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

      • PropertiesLoader

        public PropertiesLoader()
    • Method Detail

      • loadProperties

        public java.util.Properties loadProperties​(java.io.InputStream is,
                                                   java.lang.String encoding)
                                            throws java.io.IOException
        Load properties from an input stream using the specified encoding.
        Parameters:
        is - input stream
        encoding - encoding of the data in the stream
        Returns:
        Property
        Throws:
        java.io.IOException - error while accessing the input stream
      • hexDigit

        private char hexDigit​(char ch,
                              int offset)
      • escapifyStr

        private java.lang.String escapifyStr​(java.lang.String str)