public class XmlQuestionsReader extends Object
| Constructor and Description |
|---|
XmlQuestionsReader(String fileBaseName)
Create a new XmlQuestionReader
|
| Modifier and Type | Method and Description |
|---|---|
void |
readQuestions(BufferedReader reader,
Props props)
Present the questions to the user and read answers from the provided reader.
|
public XmlQuestionsReader(String fileBaseName)
fileBaseName - the basename of a file - sans .xml suffix!public void readQuestions(BufferedReader reader, Props props) throws Exception
reader - Buffered Reader to read from. Usually an InputStreamReader(System.in)props - Props object to fill the answers into.FileNotFoundException - if no question file is foundException - On various other occasionsCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.