Class JPropertyFile

java.lang.Object
com.sun.codemodel.JResourceFile
com.sun.codemodel.fmt.JPropertyFile

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

  • Constructor Details

    • JPropertyFile

      public JPropertyFile(String name)
  • Method Details

    • add

      public void add(String key, 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(OutputStream out) throws IOException
      Description copied from class: JResourceFile
      called by JPackage to produce the file image.
      Specified by:
      build in class JResourceFile
      Throws:
      IOException