com.cedarsoft.utils.serialization
Class FileBasedSerializedObjectsAccess
java.lang.Object
com.cedarsoft.utils.serialization.FileBasedSerializedObjectsAccess
- All Implemented Interfaces:
- RegistrySerializer.SerializedObjectsAccess
public class FileBasedSerializedObjectsAccess
- extends java.lang.Object
- implements RegistrySerializer.SerializedObjectsAccess
|
Method Summary |
java.io.File |
getBaseDir()
|
java.io.InputStream |
getInputStream(java.lang.String id)
Returns the input stream |
java.util.Set<? extends java.lang.String> |
getStoredIds()
Returns all stored ids |
java.io.OutputStream |
openOut(java.lang.String id)
Returns the output for the given id |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileBasedSerializedObjectsAccess
public FileBasedSerializedObjectsAccess(@NotNull
java.io.File baseDir,
@NotNull
java.lang.String extension)
getStoredIds
@NotNull
public java.util.Set<? extends java.lang.String> getStoredIds()
throws java.io.FileNotFoundException
- Description copied from interface:
RegistrySerializer.SerializedObjectsAccess
- Returns all stored ids
- Specified by:
getStoredIds in interface RegistrySerializer.SerializedObjectsAccess
- Returns:
- the stored ids
- Throws:
java.io.FileNotFoundException
openOut
@NotNull
public java.io.OutputStream openOut(@NotNull@NonNls
java.lang.String id)
throws java.io.FileNotFoundException
- Description copied from interface:
RegistrySerializer.SerializedObjectsAccess
- Returns the output for the given id
- Specified by:
openOut in interface RegistrySerializer.SerializedObjectsAccess
- Parameters:
id - the id
- Returns:
- the output stream
- Throws:
java.io.FileNotFoundException
getInputStream
@NotNull
public java.io.InputStream getInputStream(@NotNull@NonNls
java.lang.String id)
throws java.io.FileNotFoundException
- Description copied from interface:
RegistrySerializer.SerializedObjectsAccess
- Returns the input stream
- Specified by:
getInputStream in interface RegistrySerializer.SerializedObjectsAccess
- Parameters:
id - the id
- Returns:
- the input stream
- Throws:
java.io.FileNotFoundException
getBaseDir
@NotNull
public java.io.File getBaseDir()
Copyright © 2009 cedarsoft GmbH. All Rights Reserved.