Class ConfluenceParser

All Implemented Interfaces:
LogEnabled, Markup, TextMarkup, Parser

@Component(role=Parser.class, hint="confluence") public class ConfluenceParser extends AbstractTextParser
Since:
1.0
  • Field Details

  • Constructor Details

    • ConfluenceParser

      public ConfluenceParser()

      Constructor for ConfluenceParser.

  • Method Details

    • parse

      private List<Block> parse(ByLineSource source) throws ParseException
      Throws:
      ParseException
    • parse

      public void parse(Reader source, Sink sink) throws ParseException
      Parses the given source model and emits Doxia events into the given sink.
      Specified by:
      parse in interface Parser
      Overrides:
      parse in class AbstractParser
      Parameters:
      source - not null reader that provides the source document. You could use newReader methods from ReaderFactory.
      sink - A sink that consumes the Doxia events.
      Throws:
      ParseException - if the model could not be parsed.
    • parse

      public void parse(Reader source, Sink sink, String reference) throws ParseException
      Parses the given source model and emits Doxia events into the given sink.
      Parameters:
      source - not null reader that provides the source document. You could use newReader methods from ReaderFactory.
      sink - A sink that consumes the Doxia events.
      reference - the reference
      Throws:
      ParseException - if the model could not be parsed.
    • init

      protected void init()
      Initialize the parser. This is called first by AbstractParser.parse(java.io.Reader, org.apache.maven.doxia.sink.Sink) and can be used to set the parser into a clear state so it can be re-used.
      Overrides:
      init in class AbstractParser