|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objecttoolbox.confgen.ConfHelper
public class ConfHelper
Helper class to handle IO events for ConfModule implementations.
| Constructor Summary | |
|---|---|
ConfHelper()
|
|
| Method Summary | |
|---|---|
static void |
populateTemplateModel(freemarker.template.SimpleHash root,
java.util.Properties props)
Populate the given hash with the values from the given properties instance. |
static void |
read(java.io.BufferedReader reader,
java.lang.String key,
java.util.Properties props,
java.io.PrintWriter writer,
java.lang.String question,
boolean required)
Read a line of input from the given reader and place the input in the given Properties instance using the provided key. |
static void |
write(java.lang.String question,
boolean required,
java.io.PrintWriter writer)
Write the given question to the given writer |
static void |
writeQuestionHelp(java.io.PrintWriter writer)
Print a help message regarding questions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfHelper()
| Method Detail |
|---|
public static void writeQuestionHelp(java.io.PrintWriter writer)
throws java.io.IOException
writer - Use this writer to print the message.
java.io.IOException
public static void write(java.lang.String question,
boolean required,
java.io.PrintWriter writer)
throws java.io.IOException
question - The question.required - boolean indicating whether the question requires an
answer.writer - The writer
java.io.IOException
public static void read(java.io.BufferedReader reader,
java.lang.String key,
java.util.Properties props,
java.io.PrintWriter writer,
java.lang.String question,
boolean required)
throws java.io.IOException
reader - Read a line of text from this reader.key - Property name.props - Properties instance.
java.io.IOException
public static void populateTemplateModel(freemarker.template.SimpleHash root,
java.util.Properties props)
root - Template model root.props - Properties instance.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||