|
SmartFrog 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.smartfrog.services.filesystem.filestore.AddedFilestore
public class AddedFilestore
cache of files added to the filestore. When cleaned up, files are deleted.
| Constructor Summary | |
|---|---|
AddedFilestore(java.io.File directory)
Constructor. |
|
| Method Summary | |
|---|---|
FileEntry |
createNewFile(java.lang.String prefix,
java.lang.String suffix)
create new file |
boolean |
delete(java.io.File file)
Delete a file in the filestore, and remove it from the list of file entries |
boolean |
delete(java.net.URI uri)
Delete a file in the filestore, and remove it from the list of file entries |
void |
deleteAllEntries()
Delete all entries, reset the cache |
java.io.File |
getDirectory()
Get directory. |
java.util.Collection |
getEntries()
Get all the entries |
FileEntry |
lookup(java.io.File file)
get an entry |
FileEntry |
lookup(java.net.URI uri)
look up an entry |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AddedFilestore(java.io.File directory)
directory - directory| Method Detail |
|---|
public FileEntry createNewFile(java.lang.String prefix,
java.lang.String suffix)
throws java.io.IOException
prefix - file prefixsuffix - file suffix
java.io.IOException - for IO errorpublic boolean delete(java.io.File file)
file - file to delete
public boolean delete(java.net.URI uri)
uri - uri of entry
public java.io.File getDirectory()
public void deleteAllEntries()
public FileEntry lookup(java.io.File file)
file - file to lookup
public FileEntry lookup(java.net.URI uri)
uri - of entry
public java.util.Collection getEntries()
|
SmartFrog CORE 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||