Class TWikiParser

    • Constructor Detail

      • TWikiParser

        public TWikiParser()
        Creates the TWikiParser.
    • Method Detail

      • parse

        public void parse​(java.io.Reader source,
                          Sink sink)
                   throws ParseException
        Description copied from interface: Parser
        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.
        Throws:
        ParseException - if the model could not be parsed.
      • parse

        public final void parse​(java.io.Reader source,
                                Sink sink,
                                java.lang.String reference)
                         throws ParseException
        Description copied from interface: Parser
        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.
      • getTitle

        public final java.lang.String getTitle​(java.util.List<Block> blocks,
                                               ByLineSource source)
        Guess a title for the page. It uses the first section that it finds. If it doesn't find any section tries to get it from ByLineReaderSource.getName()
        Parameters:
        blocks - blocks to parse
        source - source to parse
        Returns:
        a title for a page
        Since:
        1.1