Class FigureBlockParser
java.lang.Object
org.apache.maven.doxia.module.confluence.parser.FigureBlockParser
- All Implemented Interfaces:
BlockParser
FigureBlockParser class.
- Since:
- 1.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(String line, ByLineSource source) accept.private String
appendUntilEmptyLine
(ByLineSource source) Slurp lines from the source starting with the given line appending them together into a StringBuilder until an empty line is reached, and while the source contains more lines.visit
(String line, ByLineSource source) visit.
-
Constructor Details
-
FigureBlockParser
public FigureBlockParser()
-
-
Method Details
-
accept
accept.- Specified by:
accept
in interfaceBlockParser
- Parameters:
line
- the line.source
- the source.- Returns:
- boolean true if valid.
-
visit
visit.- Specified by:
visit
in interfaceBlockParser
- Parameters:
line
- the line.source
- the source.- Returns:
- boolean true if valid.
- Throws:
ParseException
- if any.
-
appendUntilEmptyLine
Slurp lines from the source starting with the given line appending them together into a StringBuilder until an empty line is reached, and while the source contains more lines.- Parameters:
source
- the source to read new lines from- Returns:
- a StringBuilder appended with lines
- Throws:
ParseException
-