public String[] getPageText(String[] titles) throws IOException
{
for (String title : titles)
if (namespace(title) < 0)
throw new UnsupportedOperationException("Cannot retrieve \"" + title + "\": namespace < 0.");
<BUG>String[] ret = new String[titles.length];
String url = query + "prop=revisions&rvprop=content&titles=";</BUG>
for (String chunk : constructTitleString(titles, true))
{
String[] results = fetch(url + chunk, "getPageText").split("<page ");

public String[] getPageText(String[] titles) throws IOException
{
for (String title : titles)
if (namespace(title) < 0)
throw new UnsupportedOperationException("Cannot retrieve \"" + title + "\": namespace < 0.");
HashMap<String, String> pageTexts = new HashMap<String, String>(2 * titles.length);
String url = query + "prop=revisions&rvprop=content&titles=";
for (String chunk : constructTitleString(titles, true))
{
String[] results = fetch(url + chunk, "getPageText").split("<page ");
