package exercise.writer; /** * This is the base class that all of the parsers extends due to the * commonality of the Parsers work. * @author Grant K. Olds * @version * @since JDK1.2 */ import java.lang.String; import java.util.StringTokenizer; public abstract class QuestionEntryParser { protected StringBuffer section; protected StringBuffer exercise; protected StringBuffer question; protected StringBuffer hint; protected StringTokenizer file; /** * Gets the exercise number * @return the number as a string null string otherwise. */ public String getExercise() { return exercise.toString(); } /** * Gets the section number * @return the section as a string null string otherwise. */ public String getSection() { return section.toString(); } /** * Gets the question string * @return the question. null string otherwise. */ public String getQuestion() { return question.toString(); } /** * Gets the hint string * @return the question. null string otherwise. */ public String getHint() { return hint.toString(); } public abstract void parseFile(); }