com.sun.codemodel.fmt
Class JPropertyFile

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

public class JPropertyFile
extends JResourceFile

A property file.


Constructor Summary
JPropertyFile(String name)
           
 
Method Summary
 void add(String key, String value)
          Adds key/value pair into the property file.
 void build(OutputStream out)
          called by JPackage to produce the file image.
 
Methods inherited from class com.sun.codemodel.JResourceFile
isResource, name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPropertyFile

public JPropertyFile(String name)
Method Detail

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


Copyright © 2005-2013 Oracle. All Rights Reserved.