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
ConstructorDescriptionXmlStudentParser
(File file) Creates a newXmlStudentParser
that reads XML data from a givenFile
XmlStudentParser
(Reader reader) Creates a newXmlStudentParser
that reads XML data from a givenReader
-
Method Summary
Modifier and TypeMethodDescriptionCreates a newStudent
from 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 newXmlStudentParser
that reads XML data from a givenReader
-
XmlStudentParser
Creates a newXmlStudentParser
that reads XML data from a givenFile
- Throws:
IOException
-
-
Method Details
-
parseStudent
Creates a newStudent
from the contents of a file.- Throws:
ParserException
-