Class FigureBlockParser

java.lang.Object
org.apache.maven.doxia.module.confluence.parser.FigureBlockParser
All Implemented Interfaces:
BlockParser

public class FigureBlockParser extends Object implements BlockParser

FigureBlockParser class.

Since:
1.1
  • Constructor Details

    • FigureBlockParser

      public FigureBlockParser()
  • Method Details

    • accept

      public boolean accept(String line, ByLineSource source)
      accept.
      Specified by:
      accept in interface BlockParser
      Parameters:
      line - the line.
      source - the source.
      Returns:
      boolean true if valid.
    • visit

      public Block visit(String line, ByLineSource source) throws ParseException
      visit.
      Specified by:
      visit in interface BlockParser
      Parameters:
      line - the line.
      source - the source.
      Returns:
      boolean true if valid.
      Throws:
      ParseException - if any.
    • appendUntilEmptyLine

      private 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