Modifier and Type | Method and Description |
---|---|
MD5Hash |
FileShareSystem.registerContent(java.io.File localFile)
Register content.
|
Modifier and Type | Method and Description |
---|---|
void |
FileShareSystemContentRegistrationDelegate.contentNotReceived(MD5Hash contentID)
Called if there was a problem retrieving the requested content.
|
void |
FileShareSystemContentRegistrationDelegate.contentReceived(MD5Hash contentID,
java.net.URL url,
boolean wasLocal)
Content was succesfully retrieved, and is available at the provided URL.
|
void |
FileShareSystem.errorReceivingFile(MD5Hash hash) |
void |
FileShareSystem.retrieveContent(MD5Hash contentID,
FileShareSystemContentRegistrationDelegate delegate,
long timeoutMillis)
Retrieve content.
|
Modifier and Type | Method and Description |
---|---|
void |
FileReceiver.FileReceiverDelegate.errorReceivingFile(MD5Hash hash)
Error receiving file.
|
void |
FileReceiver.shouldReceiveFile(MD5Hash id,
java.lang.String device)
Should receive file.
|
Constructor and Description |
---|
FileSenderWorker(LocalFileCache localFileCache,
org.jivesoftware.smackx.filetransfer.FileTransferManager fileTransferManager,
java.lang.String deviceToSendToJID,
MD5Hash identityOfFileToSend)
Instantiates a new file sender worker.
|
Modifier and Type | Method and Description |
---|---|
MD5Hash |
LocalFileCacheEntry.getHash()
Gets the hash.
|
static MD5Hash |
MD5Hash.md5(java.io.File file)
Md5.
|
static MD5Hash |
MD5Hash.md5(java.lang.String s)
Md5.
|
Modifier and Type | Method and Description |
---|---|
boolean |
LocalFileCache.cacheContainsFileWithHashIdentity(MD5Hash id)
Cache contains file with hash identity.
|
java.io.File |
LocalFileCache.getCachedFileForHashIdentity(MD5Hash id)
Gets the cached file for hash identity.
|
Constructor and Description |
---|
LocalFileCacheEntry(MD5Hash hash,
java.io.File file)
Instantiates a new local file cache entry.
|
Modifier and Type | Method and Description |
---|---|
MD5Hash |
RequestFileTransfer.getIDOfFile()
Gets the ID of file.
|
Constructor and Description |
---|
RequestFileTransfer(java.lang.String deviceAsking,
MD5Hash idOfFile,
java.lang.String deviceThatHasFile)
Instantiates a new request file transfer.
|