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