com.cedarsoft.utils.serialization
Class InMemorySerializedObjectsAccess

java.lang.Object
  extended by com.cedarsoft.utils.serialization.InMemorySerializedObjectsAccess
All Implemented Interfaces:
RegistrySerializer.SerializedObjectsAccess

public class InMemorySerializedObjectsAccess
extends java.lang.Object
implements RegistrySerializer.SerializedObjectsAccess


Constructor Summary
InMemorySerializedObjectsAccess()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemorySerializedObjectsAccess

public InMemorySerializedObjectsAccess()
Method Detail

getInputStream

@NotNull
public java.io.InputStream getInputStream(@NotNull@NonNls
                                                  java.lang.String id)
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

getStoredIds

@NotNull
public java.util.Set<? extends java.lang.String> getStoredIds()
Description copied from interface: RegistrySerializer.SerializedObjectsAccess
Returns all stored ids

Specified by:
getStoredIds in interface RegistrySerializer.SerializedObjectsAccess
Returns:
the stored ids

openOut

@NotNull
public java.io.OutputStream openOut(@NotNull@NonNls
                                            java.lang.String id)
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


Copyright © 2009 cedarsoft GmbH. All Rights Reserved.