public class Page extends PageInfo
| Constructor and Description |
|---|
Page() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCategory(PageInfo arg0) |
boolean |
addLink(Link arg0) |
boolean |
containsCategory(PageInfo o) |
boolean |
containsLink(Link o) |
void |
downloadImageUrl(OutputStream outputStream)
If this page was created with User#queryImageinfo() you can download the
image with this method.
|
void |
downloadImageUrl(OutputStream outputStream,
String url)
If this page was created with User#queryImageinfo() you can download the
image with this method.
|
PageInfo |
getCategory(int index) |
String |
getCurrentContent() |
Revision |
getCurrentRevision() |
String |
getEditToken() |
String |
getImageThumbUrl() |
String |
getImageUrl()
Set the
imageUrl of this page if this is an
[[Image:...]] page. |
Link |
getLink(int index) |
boolean |
isInvalid() |
boolean |
isMissing() |
void |
setCurrentRevision(Revision revision) |
void |
setEditToken(String editToken) |
void |
setImageThumbUrl(String imageThumbUrl) |
void |
setImageUrl(String imageUrl)
Set the
imageUrl of this page if this is an
[[Image:...]] page. |
void |
setInvalid(boolean invalid) |
void |
setMissing(boolean missing) |
int |
sizeOfCategoryList() |
int |
sizeOfLinksList() |
String |
toString() |
public String getImageUrl()
imageUrl of this page if this is an
[[Image:...]] page. Information retrieved with
prop=imageinfofImageUrl - the image url if possible; the empty string ""
otherwise.public String getImageThumbUrl()
public void setImageUrl(String imageUrl)
imageUrl of this page if this is an
[[Image:...]] page. Information retrieved with
prop=imageinfoimageUrl - public void setImageThumbUrl(String imageThumbUrl)
public boolean addCategory(PageInfo arg0)
public boolean containsCategory(PageInfo o)
public PageInfo getCategory(int index)
public int sizeOfCategoryList()
public boolean addLink(Link arg0)
public boolean containsLink(Link o)
public Link getLink(int index)
public String getEditToken()
public void setEditToken(String editToken)
public boolean isInvalid()
public void setInvalid(boolean invalid)
public boolean isMissing()
public void setMissing(boolean missing)
public void downloadImageUrl(OutputStream outputStream)
outputStream - the output stream where the image should be written to. For
example, if you would save the image in a file, you can use
FileOutputStream.public void downloadImageUrl(OutputStream outputStream, String url)
outputStream - the output stream where the image should be written to. For
example, if you would save the image in a file, you can use
FileOutputStream.public int sizeOfLinksList()
public Revision getCurrentRevision()
public void setCurrentRevision(Revision revision)
public String getCurrentContent()
Copyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.