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 storejava.nio.channels.ReadableByteChannel
getContent(tigase.xmpp.jid.BareJID uploader, java.lang.String slotId, java.lang.String filename)
Method to retrieve content of file from slotvoid
remove(tigase.xmpp.jid.BareJID uploader, java.lang.String slotId)
Method removes content of slotvoid
setContent(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 slotlong
size()
Returns size used by store
-
-
-
Method Detail
-
count
long count() throws java.io.IOException
Returns 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.IOException
Method 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.IOException
Method 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.IOException
Method removes content of slot- Throws:
java.io.IOException
-
-