info.bliki.html.wikipedia.AbstractHTMLToWiki Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bliki-core Show documentation
Show all versions of bliki-core Show documentation
This is the core project.
The newest version!
package info.bliki.html.wikipedia;
import info.bliki.htmlcleaner.BaseToken;
import info.bliki.htmlcleaner.ContentToken;
import info.bliki.htmlcleaner.EndTagToken;
import info.bliki.htmlcleaner.TagNode;
import java.util.List;
import java.util.Map;
/**
* Base class for all HTML to wiki text converters.
*
* @see info.bliki.html.wikipedia.ToWikipedia
* @see info.bliki.html.googlecode.ToGoogleCode
*/
public class AbstractHTMLToWiki {
final Map fHashMap;
final boolean fNoDiv;
final boolean fNoFont;
final boolean fNoMSWordTags;
public AbstractHTMLToWiki(Map map, boolean noDiv, boolean noFont, boolean noMSWordTags) {
super();
fHashMap = map;
fNoDiv = noDiv;
fNoFont = noFont;
fNoMSWordTags = noMSWordTags;
}
public AbstractHTMLToWiki(Map map, boolean noDiv, boolean noFont) {
this(map, noDiv, noFont, false);
}
public void nodesToText(List