public class WikiReader extends Object
| Constructor and Description |
|---|
WikiReader()
Constructs a new
WikiReader. |
WikiReader(String baseurl)
Constructs a new
WikiReader for the given base URL. |
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseUrlWiki()
Returns the base URL of wiki.
|
String |
read(String url)
Read the page specified by the url and return the content.
|
protected String |
readFromTrac(BufferedReader in,
URL url) |
String |
readLang(String text)
Reads the localized version of the given wiki page.
|
private String |
readLang(URL url) |
private static String |
readNormal(BufferedReader in,
boolean html) |
public WikiReader(String baseurl)
WikiReader for the given base URL.baseurl - The wiki base URLpublic WikiReader()
WikiReader.public final String getBaseUrlWiki()
public String read(String url) throws IOException
url - the URL to readIOException - Throws, if the page could not be loaded.public String readLang(String text) throws IOException
text - The page title, without locale prefixIOException - if any I/O error occursprivate String readLang(URL url) throws IOException
IOExceptionprivate static String readNormal(BufferedReader in, boolean html) throws IOException
IOExceptionprotected String readFromTrac(BufferedReader in, URL url) throws IOException
IOException