public class FileBasedObjectsAccess extends Object implements StreamBasedObjectsAccess
| Constructor and Description |
|---|
FileBasedObjectsAccess(File baseDir,
String extension) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String id) |
File |
getBaseDir() |
Set<? extends String> |
getIds()
Returns the ids
|
InputStream |
getInputStream(String id)
Returns the input stream
|
OutputStream |
openOut(String id)
Returns the output for the given id
throws com.cedarsoft.exceptions.StillContainedException if an object with the given id is still contained
|
OutputStream |
openOutForUpdate(String id) |
@Nonnull public Set<? extends String> getIds() throws IOException
AbstractRegistrySerializingStrategy.ObjectsAccessgetIds in interface AbstractRegistrySerializingStrategy.ObjectsAccessIOException - if there is an io problem@Nonnull public OutputStream openOut(@Nonnull String id) throws FileNotFoundException
StreamBasedObjectsAccessopenOut in interface StreamBasedObjectsAccessid - the idFileNotFoundExceptionpublic OutputStream openOutForUpdate(@Nonnull String id) throws com.cedarsoft.serialization.NotFoundException, FileNotFoundException
openOutForUpdate in interface StreamBasedObjectsAccesscom.cedarsoft.serialization.NotFoundExceptionFileNotFoundException@Nonnull public InputStream getInputStream(@Nonnull String id) throws FileNotFoundException
StreamBasedObjectsAccessgetInputStream in interface StreamBasedObjectsAccessid - the idFileNotFoundExceptionpublic void delete(@Nonnull String id) throws com.cedarsoft.serialization.NotFoundException
delete in interface StreamBasedObjectsAccesscom.cedarsoft.serialization.NotFoundExceptionCopyright © 2007–2016 cedarsoft GmbH. All rights reserved.