Class PropertyConfig

  • All Implemented Interfaces:
    Config, java.io.Serializable, java.util.Map<java.lang.String,​java.lang.String>
    Direct Known Subclasses:
    SecureConfig

    public class PropertyConfig
    extends ConfigMap
    implements java.io.Serializable
    Author:
    Loc Ha
    See Also:
    Serialized Form
    • Constructor Detail

      • PropertyConfig

        public PropertyConfig()
      • PropertyConfig

        public PropertyConfig​(java.util.Map<java.lang.String,​java.lang.String> newMap)
    • Method Detail

      • load

        public PropertyConfig load​(java.io.InputStream is)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • load

        public PropertyConfig load​(java.io.Reader r)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • load

        public PropertyConfig load​(java.io.File file)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • load

        public PropertyConfig load​(java.lang.String file)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • fromProperties

        protected void fromProperties​(java.util.Properties props)
      • store

        public void store​(java.io.File file,
                          java.lang.String comments)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • store

        public void store​(java.lang.String file,
                          java.lang.String comments)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • store

        public void store​(java.io.OutputStream os,
                          java.lang.String comments)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • store

        public void store​(java.io.Writer w,
                          java.lang.String comments)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • toProperties

        protected java.util.Properties toProperties()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object