public class ImageInfo extends MWAction
| Modifier and Type | Field and Description |
|---|---|
static String |
HEIGHT |
static String |
WIDTH |
| Constructor and Description |
|---|
ImageInfo(MediaWikiBot bot,
String name)
Get an absolute url to an image.
|
ImageInfo(MediaWikiBot bot,
String name,
Map<String,String> params) |
ImageInfo(MediaWikiBot bot,
String name,
String[][] params)
TODO change params to a map
|
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
getAsImage() |
HttpAction |
getNextMessage() |
URL |
getUrl() |
String |
getUrlAsString() |
boolean |
isSelfExecuter()
Deprecated.
see super
|
String |
processAllReturningText(String s) |
createNsString, evaluateXpath, getErrorElement, getRootElement, getRootElementWithError, hasMoreMessages, processReturningText, setExceptionHandler, setHasMoreMessagespublic static final String WIDTH
public static final String HEIGHT
public ImageInfo(MediaWikiBot bot, String name)
name - of, like "Test.gif"public ImageInfo(MediaWikiBot bot, String name, Map<String,String> params)
public ImageInfo(MediaWikiBot bot, String name, String[][] params)
public String getUrlAsString()
public URL getUrl()
@Deprecated public boolean isSelfExecuter()
isSelfExecuter in interface ContentProcessableisSelfExecuter in class MWActionpublic BufferedImage getAsImage() throws IOException
IOExceptionpublic String processAllReturningText(String s)
processAllReturningText in class MWActions - the returning textpublic HttpAction getNextMessage()
Copyright © 2013. All Rights Reserved.