de.hpi.fgis.dude.util.data.storage
Interface JsonWritable<T extends Jsonable>

Type Parameters:
T - The type of instances that shall be added.
All Known Subinterfaces:
DuDeStorage<T>
All Known Implementing Classes:
AbstractDuDeStorage, FileBasedStorage, InMemoryStorage

public interface JsonWritable<T extends Jsonable>

JsonWritable is an interface for adding writable functionality to some Jsonable storage.

Author:
Matthias Pohl

Method Summary
 void disableFormattedJson()
          Disables formatted Json for this storage.
 void enableFormattedJson()
          Enables formatted Json for this storage.
 JsonableWriter<T> getWriter()
          Returns the JsonableWriter that can be used to add instances to this DuDeStorage.
 boolean isFormattedJson()
          Checks whether formatted Json is enabled in this storage.
 

Method Detail

getWriter

JsonableWriter<T> getWriter()
                                             throws IOException
Returns the JsonableWriter that can be used to add instances to this DuDeStorage.

Returns:
The JsonableWriter for adding content to this storage.
Throws:
IOException - If an error occurs while writing data.

isFormattedJson

boolean isFormattedJson()
Checks whether formatted Json is enabled in this storage.

Returns:
true, if it is enabled; otherwise false.

enableFormattedJson

void enableFormattedJson()
Enables formatted Json for this storage.


disableFormattedJson

void disableFormattedJson()
Disables formatted Json for this storage.



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