com.cedarsoft.utils.serialization
Interface RegistrySerializer.SerializedObjectsAccess

All Known Implementing Classes:
FileBasedSerializedObjectsAccess, InMemorySerializedObjectsAccess
Enclosing class:
RegistrySerializer<T,R extends Registry<T>>

public static interface RegistrySerializer.SerializedObjectsAccess

The serialized objects access


Method Summary
 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
 

Method Detail

openOut

@NotNull
java.io.OutputStream openOut(@NotNull@NonNls
                                     java.lang.String id)
                             throws StillContainedException,
                                    java.io.FileNotFoundException
Returns the output for the given id

Parameters:
id - the id
Returns:
the output stream
Throws:
java.io.FileNotFoundException
StillContainedException - if an object with the given id is still contained

getStoredIds

@NotNull
@NonNls
java.util.Set<? extends java.lang.String> getStoredIds()
                                                       throws java.io.FileNotFoundException
Returns all stored ids

Returns:
the stored ids
Throws:
java.io.FileNotFoundException

getInputStream

@NotNull
java.io.InputStream getInputStream(@NotNull@NonNls
                                           java.lang.String id)
                                   throws java.io.FileNotFoundException
Returns the input stream

Parameters:
id - the id
Returns:
the input stream
Throws:
java.io.FileNotFoundException


Copyright © 2009 cedarsoft GmbH. All Rights Reserved.