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 storejava.nio.channels.ReadableByteChannelgetContent(tigase.xmpp.jid.BareJID uploader, java.lang.String slotId, java.lang.String filename)Method to retrieve content of file from slotvoidremove(tigase.xmpp.jid.BareJID uploader, java.lang.String slotId)Method removes content of slotvoidsetContent(tigase.xmpp.jid.BareJID uploader, java.lang.String slotId, java.lang.String filename, long size, java.nio.channels.ReadableByteChannel source)Method to set content of file to slotlongsize()Returns size used by store
-
-
-
Method Detail
-
count
long count() throws java.io.IOExceptionReturns number of elements in store- Throws:
java.io.IOException
-
size
long size() throws java.io.IOException
Returns size used by store- Throws:
java.io.IOException
-
getContent
java.nio.channels.ReadableByteChannel getContent(tigase.xmpp.jid.BareJID uploader, java.lang.String slotId, java.lang.String filename) throws java.io.IOExceptionMethod to retrieve content of file from slot- Throws:
java.io.IOException
-
setContent
void setContent(tigase.xmpp.jid.BareJID uploader, java.lang.String slotId, java.lang.String filename, long size, java.nio.channels.ReadableByteChannel source) throws java.io.IOExceptionMethod to set content of file to slot- Throws:
java.io.IOException
-
remove
void remove(tigase.xmpp.jid.BareJID uploader, java.lang.String slotId) throws java.io.IOExceptionMethod removes content of slot- Throws:
java.io.IOException
-
-