public class HelpContentReader extends WikiReader
Constructor and Description |
---|
HelpContentReader(String baseUrl)
constructor
|
Modifier and Type | Method and Description |
---|---|
String |
fetchHelpTopicContent(String helpTopicUrl,
boolean dotest)
Fetches the content of a help topic from the JOSM wiki.
|
protected String |
prepareHelpContent(BufferedReader in,
boolean dotest,
URL url)
Reads help content from the input stream and prepares it to be rendered later
in the internal help browser.
|
read, readFromTrac, readLang
public HelpContentReader(String baseUrl)
baseUrl
- the base url of the JOSM help wiki, i.e. http://josm.openstreetmap.orgpublic String fetchHelpTopicContent(String helpTopicUrl, boolean dotest) throws HelpContentReaderException
helpTopicUrl
- the absolute help topic URLHelpContentReaderException
- thrown if problem occursMissingHelpContentException
- thrown if this helpTopicUrl doesn't point to an existing Wiki help pageprotected String prepareHelpContent(BufferedReader in, boolean dotest, URL url) throws HelpContentReaderException
MissingHelpContentException
if the content read from the stream
most likely represents a stub help page.in
- the input streamHelpContentReaderException
- thrown if an exception occursMissingHelpContentException
- thrown, if the content read isn't a help page