|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.scm.ChangeLogParser
org.jenkinsci.plugins.darcs.DarcsChangeLogParser
class DarcsChangeLogParser
Parses the output of Darcs log.
Field Summary | |
---|---|
private DarcsSaxHandler |
handler
Custom SAX Parser. |
private static Logger |
LOGGER
Logger facility. |
private DarcsXmlSanitizer |
sanitizer
Sanitizes XML character encoding. |
Constructor Summary | |
---|---|
DarcsChangeLogParser()
Convenience constructor which initializes all dependencies. |
|
DarcsChangeLogParser(DarcsSaxHandler handler,
DarcsXmlSanitizer sani)
Dedicated constructor. |
Method Summary | |
---|---|
DarcsChangeSetList |
parse(AbstractBuild build,
File changelogFile)
Parses the Darcs change log file. |
private DarcsChangeSetList |
parse(AbstractBuild build,
InputSource changeLog)
|
DarcsChangeSetList |
parse(ByteArrayOutputStream changeLog)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Logger LOGGER
private final DarcsSaxHandler handler
private final DarcsXmlSanitizer sanitizer
Constructor Detail |
---|
public DarcsChangeLogParser()
public DarcsChangeLogParser(DarcsSaxHandler handler, DarcsXmlSanitizer sani)
handler
- implementation of a SAX parsersani
- sanitize to clean commentsMethod Detail |
---|
public DarcsChangeSetList parse(AbstractBuild build, File changelogFile) throws IOException, SAXException
parse
in class ChangeLogParser
build
- the current buildchangelogFile
- the change log file
IOException
- on read errors
SAXException
- on parse errorspublic DarcsChangeSetList parse(ByteArrayOutputStream changeLog) throws IOException, SAXException
changeLog
- stream to read XML from
IOException
- on read errors
SAXException
- on parse errorsparse(hudson.model.AbstractBuild, java.io.File)
private DarcsChangeSetList parse(AbstractBuild build, InputSource changeLog) throws IOException, SAXException
IOException
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |