This package provides:
This command reads dot_properties_file and create a Properties subclass class_name if -r is not specified. if -r is specified, a ResourceBundle subclass is created.
% java -Xbootclasspath/a:/usr/local/pnuts/lib/pnuts.jar -jar property-io.jar -r pnuts/lang/pnuts_ja.properites pnuts.lang.pnuts_ja % mv pnuts_ja.class pnuts/lang/
compileProperties() compiles a java.util.Properties objects into the specified class (className), and writes to outputStream or saves in file. The generated class is a Properties subclass that can be instantiated with the default constructor.
prop = loadProperties("content-types.properties")
compileProperties(prop, "content_types", "content_types.class")
compileResourceBundle() generates java.util.ResourceBundle instead of Properties.
readProperties() loads and instantiates a compiled proeprties class if it exists. The class name is made from name replacing hyphens with under-bars, and slashes with dots.
If the class can not be instantiated, name.properties file is loaded into a newly created Properties object.
prop = readProperties("content-types")