@Bean(name="store",
parent=FileUploadComponent.class,
active=true,
exportable=true)
public class DirectoryStore
extends Object
implements Store
| Constructor and Description |
|---|
DirectoryStore() |
| Modifier and Type | Method and Description |
|---|---|
long |
count()
Returns number of elements in store
|
ReadableByteChannel |
getContent(tigase.xmpp.jid.BareJID uploader,
String slotId,
String filename)
Method to retrieve content of file from slot
|
protected Path |
prepareSlotPath(tigase.xmpp.jid.BareJID uploader,
String slotId) |
void |
remove(tigase.xmpp.jid.BareJID uploader,
String slotId)
Method removes content of slot
|
protected void |
removeWithContent(Path path) |
void |
setContent(tigase.xmpp.jid.BareJID uploader,
String slotId,
String filename,
long size,
ReadableByteChannel source)
Method to set content of file to slot
|
void |
setPath(String path) |
long |
size()
Returns size used by store
|
public void setPath(String path)
public long count()
throws IOException
Storecount in interface StoreIOExceptionpublic long size()
throws IOException
Storesize in interface StoreIOExceptionpublic ReadableByteChannel getContent(tigase.xmpp.jid.BareJID uploader, String slotId, String filename) throws IOException
StoregetContent in interface StoreIOExceptionpublic void setContent(tigase.xmpp.jid.BareJID uploader,
String slotId,
String filename,
long size,
ReadableByteChannel source)
throws IOException
StoresetContent in interface StoreIOExceptionpublic void remove(tigase.xmpp.jid.BareJID uploader,
String slotId)
Storeprotected void removeWithContent(Path path)
Copyright © 2013–2021 Tigase. All rights reserved.