-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
MarkdownParser.java
35 lines (31 loc) · 921 Bytes
/
MarkdownParser.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.elovirta.dita.markdown;
import com.vladsch.flexmark.util.sequence.BasedSequence;
import java.net.URI;
import org.xml.sax.ContentHandler;
import org.xml.sax.ErrorHandler;
import org.xml.sax.SAXException;
/**
* Interface for Markdown parser that produces SAX events for a DITA document.
*/
public interface MarkdownParser {
/**
* Parse a Markdown document.
*
* @param sequence Markdown document content.
* @param input Markdown document URI.
* @throws ParseException if parsing failed
*/
void convert(BasedSequence sequence, URI input) throws SAXException;
/**
* Set the content event handler.
*
* @param handler the new content handler
*/
void setContentHandler(ContentHandler handler);
/**
* Allow an application to register an error event handler.
*
* @param errorHandler the error handler.
*/
void setErrorHandler(ErrorHandler errorHandler);
}