Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Document getABFLog(Map<String,String> params) throws IOException, MediaWiki.MediaWikiException {
- final String url = createApiGetUrl(params);
- networkLock.lock();
- try {
- final InputStream in = get(url);
- final Document xml = parse(in);
- // no checkError: no errors declared for this action
- return xml;
- }
- finally {
- networkLock.unlock();
- }
- }
- public InputStream getABFLogStream(Map<String,String> params) throws IOException, MediaWiki.MediaWikiException {
- final String url = createApiGetUrl(params);
- networkLock.lock();
- try {
- final InputStream in = get(url);
- // no checkError: no errors declared for this action
- return in;
- }
- finally {
- networkLock.unlock();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment