Package tigase.http.upload.store
Class DirectoryStore
- java.lang.Object
-
- tigase.http.upload.store.DirectoryStore
-
- All Implemented Interfaces:
Store
@Bean(name="store", parent=FileUploadComponent.class, active=true, exportable=true) public class DirectoryStore extends Object implements StoreCreated by andrzej on 08.08.2016.
-
-
Constructor Summary
Constructors Constructor Description DirectoryStore()
-
Method Summary
All Methods Instance Methods Concrete 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 slotprotected PathprepareSlotPath(tigase.xmpp.jid.BareJID uploader, String slotId)voidremove(tigase.xmpp.jid.BareJID uploader, String slotId)Method removes content of slotprotected voidremoveWithContent(Path path)voidsetContent(tigase.xmpp.jid.BareJID uploader, String slotId, String filename, long size, ReadableByteChannel source)Method to set content of file to slotvoidsetPath(String path)longsize()Returns size used by store
-
-
-
Method Detail
-
setPath
public void setPath(String path)
-
count
public long count() throws IOExceptionDescription copied from interface:StoreReturns number of elements in store- Specified by:
countin interfaceStore- Throws:
IOException
-
size
public long size() throws IOExceptionDescription copied from interface:StoreReturns size used by store- Specified by:
sizein interfaceStore- Throws:
IOException
-
getContent
public ReadableByteChannel getContent(tigase.xmpp.jid.BareJID uploader, String slotId, String filename) throws IOException
Description copied from interface:StoreMethod to retrieve content of file from slot- Specified by:
getContentin interfaceStore- Throws:
IOException
-
setContent
public void setContent(tigase.xmpp.jid.BareJID uploader, String slotId, String filename, long size, ReadableByteChannel source) throws IOExceptionDescription copied from interface:StoreMethod to set content of file to slot- Specified by:
setContentin interfaceStore- Throws:
IOException
-
remove
public void remove(tigase.xmpp.jid.BareJID uploader, String slotId)Description copied from interface:StoreMethod removes content of slot
-
removeWithContent
protected void removeWithContent(Path path)
-
-