Class ChangelogContentParser
- java.lang.Object
-
- jptools.parser.Parser
-
- jptools.parser.ByteParser
-
- jptools.parser.StringParser
-
- com.github.toolarium.changelog.parser.impl.ChangelogContentParser
-
- All Implemented Interfaces:
java.io.Serializable
public class ChangelogContentParser extends jptools.parser.StringParser- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static charNEWLINEThe newline
-
Constructor Summary
Constructors Constructor Description ChangelogContentParser()Constructor for ChangelogParser
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(java.lang.String data)voidinit(jptools.util.ByteArray data)java.lang.StringreadChangelogSeparator()Read the changelog separatorjava.lang.StringreadChangelogText()Read the descriptionjava.lang.StringreadDate()Read the datejava.lang.StringreadDescription()Read the descriptionjava.lang.StringreadEOL()Read until end of line.java.lang.StringreadHeaderEnd()Read the header endjava.lang.CharacterreadHeaderSeparator()Read the header separator.java.util.List<java.lang.String>readItems()Read section itemsjava.lang.StringreadVersion()Read the version-
Methods inherited from class jptools.parser.StringParser
getLogger, isCharacter, isDigit, readAndTestNextCharacter, readAndTestNextNumber, readBlanks, readId, readId, readNextCharacter, readNextNumbers, readText, readText, readTextSeparator, testString
-
Methods inherited from class jptools.parser.Parser
addLine, addStopBytes, addStopBytes, afterInit, beforeInit, getCurrentByte, getData, getLineNumber, getLogInformation, getNumOfIgnoredBytes, getParsedData, getPosition, getProgressMonitor, getRestData, getStopBytes, increaseIgnoreByte, increaseIgnoreByte, init, init, isEOL, isPartOf, isPartOf, isStopByte, isVerboseMode, log, log, logParseError, lookAhead, lookAhead, pushBack, pushBack, readBytes, readBytes, readNext, readNext, readSeparator, readSeparator, removeStopBytes, removeStopBytes, resetPosition, searchFromPosition, setCursorPosition, setEOL, setLogInformation, setProgressMonitor, setStopBytes, setVerboseMode, startsWith, toString
-
-
-
-
Field Detail
-
NEWLINE
public static final char NEWLINE
The newline- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(java.lang.String data)
- Overrides:
initin classjptools.parser.StringParser- See Also:
StringParser.init(java.lang.String)
-
init
public void init(jptools.util.ByteArray data)
- Overrides:
initin classjptools.parser.Parser- See Also:
Parser.init(jptools.util.ByteArray)
-
readVersion
public java.lang.String readVersion()
Read the version- Returns:
- the version
-
readDate
public java.lang.String readDate()
Read the date- Returns:
- the date
-
readHeaderEnd
public java.lang.String readHeaderEnd()
Read the header end- Returns:
- the header end
-
readDescription
public java.lang.String readDescription()
Read the description- Returns:
- the description
-
readHeaderSeparator
public java.lang.Character readHeaderSeparator()
Read the header separator.- Returns:
- the read separator
-
readEOL
public java.lang.String readEOL()
Read until end of line.- Returns:
- the content
-
readChangelogSeparator
public java.lang.String readChangelogSeparator()
Read the changelog separator- Returns:
- the changelog separator
-
readItems
public java.util.List<java.lang.String> readItems()
Read section items- Returns:
- the section item
-
readChangelogText
public java.lang.String readChangelogText()
Read the description- Returns:
- the description
-
-