de.hpi.fgis.dude.util.data.storage
Class AbstractDuDeStorage.AbstractJsonableWriter<T extends Jsonable>

java.lang.Object
  extended by de.hpi.fgis.dude.util.data.storage.AbstractDuDeStorage.AbstractJsonableWriter<T>
Type Parameters:
T - The Jsonable type whose instances are stored in the DuDeStorage.
All Implemented Interfaces:
JsonableWriter<T>, Closeable
Enclosing class:
AbstractDuDeStorage<T extends Jsonable>

protected abstract static class AbstractDuDeStorage.AbstractJsonableWriter<T extends Jsonable>
extends Object
implements JsonableWriter<T>

AbstractDuDeStorage.AbstractJsonableWriter implements some functionality that shall be provided by all JsonableWriter sub-classes.

Author:
Matthias Pohl

Constructor Summary
protected AbstractDuDeStorage.AbstractJsonableWriter()
           
 
Method Summary
 boolean addAll(Collection<T> collection)
          Adds content of the passed collection to the underlying DuDeStorage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.hpi.fgis.dude.util.data.storage.JsonableWriter
add
 
Methods inherited from interface java.io.Closeable
close
 

Constructor Detail

AbstractDuDeStorage.AbstractJsonableWriter

protected AbstractDuDeStorage.AbstractJsonableWriter()
Method Detail

addAll

public boolean addAll(Collection<T> collection)
               throws org.codehaus.jackson.JsonGenerationException,
                      IOException
Description copied from interface: JsonableWriter
Adds content of the passed collection to the underlying DuDeStorage.

Specified by:
addAll in interface JsonableWriter<T extends Jsonable>
Parameters:
collection - The collection whose content shall be added.
Returns:
true, if the content of the storage changed by reason of calling this method; otherwise false.
Throws:
org.codehaus.jackson.JsonGenerationException - If an error occurred while converting the passed object into Json.
IOException - If an error occurred while sending the data to the stream.


Copyright © 2011 Hasso Plattner Institute - Chair of Information Systems. All Rights Reserved.