public class MarkupParser
extends java.lang.Object
Constructor and Description |
---|
MarkupParser() |
MarkupParser(MarkupLanguage markupLanguage) |
MarkupParser(MarkupLanguage markupLanguage,
DocumentBuilder builder) |
Modifier and Type | Method and Description |
---|---|
DocumentBuilder |
getBuilder()
the builder to which parse results are propagated
|
MarkupLanguage |
getMarkupLanguage()
the markup language of the markup to process
|
void |
parse(java.io.Reader markupContent) |
void |
parse(java.io.Reader markupContent,
boolean asDocument) |
void |
parse(java.lang.String markupContent) |
void |
parse(java.lang.String markupContent,
boolean asDocument) |
java.lang.String |
parseToHtml(java.lang.String markupContent)
parse the given markup content and produce the result as an HTML document.
|
void |
setBuilder(DocumentBuilder builder)
set the builder to which parse results are propagated
|
void |
setMarkupLanguage(MarkupLanguage markupLanguage)
set the markup language of the markup to process
|
public MarkupParser()
public MarkupParser(MarkupLanguage markupLanguage, DocumentBuilder builder)
public MarkupParser(MarkupLanguage markupLanguage)
public MarkupLanguage getMarkupLanguage()
public void setMarkupLanguage(MarkupLanguage markupLanguage)
public DocumentBuilder getBuilder()
public void setBuilder(DocumentBuilder builder)
public void parse(java.io.Reader markupContent) throws java.io.IOException
java.io.IOException
public void parse(java.io.Reader markupContent, boolean asDocument) throws java.io.IOException
java.io.IOException
public void parse(java.lang.String markupContent)
public void parse(java.lang.String markupContent, boolean asDocument)
public java.lang.String parseToHtml(java.lang.String markupContent)
markupContent
- the content to parseCopyright © 2007, 2013 David Green and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html