Package tigase.http.upload.store
Interface Store
-
- All Known Implementing Classes:
DirectoryStore
public interface Store
Created by andrzej on 08.08.2016.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
count()
Returns number of elements in storeReadableByteChannel
getContent(tigase.xmpp.jid.BareJID uploader, String slotId, String filename)
Method to retrieve content of file from slotvoid
remove(tigase.xmpp.jid.BareJID uploader, String slotId)
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 Detail
-
count
long count() throws IOException
Returns number of elements in store- Throws:
IOException
-
size
long size() throws IOException
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
void remove(tigase.xmpp.jid.BareJID uploader, String slotId) throws IOException
Method removes content of slot- Throws:
IOException
-
-