Class JPropertyFile


  • public class JPropertyFile
    extends JResourceFile
    A property file.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Properties data  
    • Constructor Summary

      Constructors 
      Constructor Description
      JPropertyFile​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.String key, java.lang.String value)
      Adds key/value pair into the property file.
      void build​(java.io.OutputStream out)
      called by JPackage to produce the file image.
      • Methods inherited from class java.lang.Object

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

      • data

        private final java.util.Properties data
    • Constructor Detail

      • JPropertyFile

        public JPropertyFile​(java.lang.String name)
    • Method Detail

      • add

        public void add​(java.lang.String key,
                        java.lang.String value)
        Adds key/value pair into the property file. If you call this method twice with the same key, the old one is overriden by the new one.
      • build

        public void build​(java.io.OutputStream out)
                   throws java.io.IOException
        Description copied from class: JResourceFile
        called by JPackage to produce the file image.
        Specified by:
        build in class JResourceFile
        Throws:
        java.io.IOException