public class FileTransferUtility extends Object
| Constructor and Description |
|---|
FileTransferUtility() |
| Modifier and Type | Method and Description |
|---|---|
static tigase.jaxmpp.core.client.JID |
getBestJidForFeatures(tigase.jaxmpp.j2se.Jaxmpp jaxmpp,
tigase.jaxmpp.core.client.BareJID jid,
String[] features) |
static tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer |
getFileTransfer(tigase.jaxmpp.core.client.JID peerJid,
String sid) |
static tigase.jaxmpp.j2se.Jaxmpp |
getJaxmpp(android.app.Activity activity,
tigase.jaxmpp.core.client.BareJID account) |
static File |
getPathToSave(String filename,
String mimetype,
String store) |
static String |
guessMimeType(String filename) |
static void |
refreshMediaScanner(android.content.Context context,
File file) |
static void |
registerFileTransfer(tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft) |
static String |
resolveFilename(android.app.Activity activity,
android.net.Uri uri,
String mimetype) |
static boolean |
resourceContainsFeatures(tigase.jaxmpp.j2se.Jaxmpp jaxmpp,
tigase.jaxmpp.core.client.JID jid,
String[] features) |
static void |
startFileTransfer(android.app.Activity activity,
tigase.jaxmpp.j2se.Jaxmpp jaxmpp,
tigase.jaxmpp.core.client.JID peerJid,
android.net.Uri uri,
String mimetype) |
static tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer |
unregisterFileTransfer(tigase.jaxmpp.core.client.JID peerJid,
String sid) |
public static final String[] FEATURES
public static tigase.jaxmpp.core.client.JID getBestJidForFeatures(tigase.jaxmpp.j2se.Jaxmpp jaxmpp,
tigase.jaxmpp.core.client.BareJID jid,
String[] features)
public static tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer getFileTransfer(tigase.jaxmpp.core.client.JID peerJid,
String sid)
public static tigase.jaxmpp.j2se.Jaxmpp getJaxmpp(android.app.Activity activity,
tigase.jaxmpp.core.client.BareJID account)
public static void refreshMediaScanner(android.content.Context context,
File file)
public static void registerFileTransfer(tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft)
public static String resolveFilename(android.app.Activity activity, android.net.Uri uri, String mimetype)
public static boolean resourceContainsFeatures(tigase.jaxmpp.j2se.Jaxmpp jaxmpp,
tigase.jaxmpp.core.client.JID jid,
String[] features)
throws tigase.jaxmpp.core.client.xml.XMLException
tigase.jaxmpp.core.client.xml.XMLExceptionpublic static void startFileTransfer(android.app.Activity activity,
tigase.jaxmpp.j2se.Jaxmpp jaxmpp,
tigase.jaxmpp.core.client.JID peerJid,
android.net.Uri uri,
String mimetype)
public static tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer unregisterFileTransfer(tigase.jaxmpp.core.client.JID peerJid,
String sid)
Copyright © 2019. All rights reserved.