Class FigureBlockParser
- java.lang.Object
-
- org.apache.maven.doxia.module.confluence.parser.FigureBlockParser
-
- All Implemented Interfaces:
BlockParser
public class FigureBlockParser extends java.lang.Object implements BlockParser
FigureBlockParser class.
- Since:
- 1.1
- Version:
- $Id$
-
-
Constructor Summary
Constructors Constructor Description FigureBlockParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(java.lang.String line, ByLineSource source)
accept.private java.lang.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.Block
visit(java.lang.String line, ByLineSource source)
visit.
-
-
-
Method Detail
-
accept
public boolean accept(java.lang.String line, ByLineSource source)
accept.- Specified by:
accept
in interfaceBlockParser
- Parameters:
line
- the line.source
- the source.- Returns:
- boolean true if valid.
-
visit
public Block visit(java.lang.String line, ByLineSource source) throws ParseException
visit.- Specified by:
visit
in interfaceBlockParser
- Parameters:
line
- the line.source
- the source.- Returns:
- boolean true if valid.
- Throws:
ParseException
- if any.
-
appendUntilEmptyLine
private java.lang.String appendUntilEmptyLine(ByLineSource source) throws ParseException
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
-
-