Package edu.pdx.cs410J.grader.gradebook
Class XmlStudentParser
java.lang.Object
edu.pdx.cs410J.grader.gradebook.XmlHelper
edu.pdx.cs410J.grader.gradebook.XmlStudentParser
- All Implemented Interfaces:
EntityResolver,ErrorHandler
This class parses XML data that describes a
Student.-
Field Summary
Fields inherited from class edu.pdx.cs410J.grader.gradebook.XmlHelper
DATE_TIME_FORMAT, publicID, systemID -
Constructor Summary
ConstructorsConstructorDescriptionXmlStudentParser(File file) Creates a newXmlStudentParserthat reads XML data from a givenFileXmlStudentParser(Reader reader) Creates a newXmlStudentParserthat reads XML data from a givenReader -
Method Summary
Modifier and TypeMethodDescriptionCreates a newStudentfrom the contents of a file.Methods inherited from class edu.pdx.cs410J.grader.gradebook.XmlHelper
error, extractNotesFrom, extractTextFrom, fatalError, getBytesForXmlDocument, resolveEntity, warning, writeXmlToPrintWriter
-
Constructor Details
-
XmlStudentParser
Creates a newXmlStudentParserthat reads XML data from a givenReader -
XmlStudentParser
Creates a newXmlStudentParserthat reads XML data from a givenFile- Throws:
IOException
-
-
Method Details
-
parseStudent
Creates a newStudentfrom the contents of a file.- Throws:
ParserException
-