Package tigase.http.upload.store
Interface Store
- All Known Implementing Classes:
DirectoryStore
public interface Store
Created by andrzej on 08.08.2016.
-
Method Summary
Modifier and TypeMethodDescriptionlong
count()
Returns number of elements in storegetContent
(tigase.xmpp.jid.BareJID uploader, String slotId, String filename) Method to retrieve content of file from slotvoid
Method removes content of slotvoid
setContent
(tigase.xmpp.jid.BareJID uploader, String slotId, String filename, long size, ReadableByteChannel source) Method to set content of file to slotlong
size()
Returns size used by store
-
Method Details
-
count
Returns number of elements in store- Throws:
IOException
-
size
Returns size used by store- Throws:
IOException
-
getContent
ReadableByteChannel getContent(tigase.xmpp.jid.BareJID uploader, String slotId, String filename) throws IOException Method to retrieve content of file from slot- Throws:
IOException
-
setContent
void setContent(tigase.xmpp.jid.BareJID uploader, String slotId, String filename, long size, ReadableByteChannel source) throws IOException Method to set content of file to slot- Throws:
IOException
-
remove
Method removes content of slot- Throws:
IOException
-