Top Description Fields Constructors Methods
com.sun.codemodel.fmt

public Class JPropertyFile

extends JResourceFile
Class Inheritance
Imports
java.io.IOException, .OutputStream, java.util.Properties, com.sun.codemodel.JResourceFile

A property file.

Field Summary

Modifier and TypeField and Description
private final Properties

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
add(String key, String value)

Adds key/value pair into the property file.

public void
build(OutputStream out)

Implements abstract com.sun.codemodel.JResourceFile.build.

called by JPackage to produce the file image.

Inherited from com.sun.codemodel.JResourceFile:
isResourcename

Field Detail

databack to summary
private final Properties data

Constructor Detail

JPropertyFileback to summary
public JPropertyFile(String name)

Method Detail

addback to summary
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.

buildback to summary
public void build(OutputStream out) throws IOException

Implements abstract com.sun.codemodel.JResourceFile.build.

Doc from com.sun.codemodel.JResourceFile.build.

called by JPackage to produce the file image.

Annotations
@Override