Class AccContext<K,V>
java.lang.Object
org.aksw.jenax.io.json.accumulator.AccContext<K,V>
- Direct Known Subclasses:
AccContextRdf
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccJsonErrorHandlerprotected GonProvider<K,V> The provider for building in memory objects.protected booleanWhether to accumulate a JsonElementprotected booleanWhether to stream to the jsonWriterprotected ObjectNotationWriter<K,V> The writer for generalized object notation. -
Constructor Summary
ConstructorsConstructorDescriptionAccContext(ObjectNotationWriter<K, V> writer, boolean materialize, boolean serialize) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanstatic AccContextRdfCreate a context that only materializesstatic AccContextRdfserializing(com.google.gson.Gson gson, com.google.gson.stream.JsonWriter jsonWriter) static <K,V> AccContext<K, V> serializing(ObjectNotationWriter<K, V> writer) static AccContextRdfserializing(RdfObjectNotationWriter writer) voidsetErrorHandler(AccJsonErrorHandler errorHandler) voidsetGonProvider(GonProvider<K, V> gonProvider) voidsetWriter(ObjectNotationWriter<K, V> writer)
-
Field Details
-
materialize
protected boolean materializeWhether to accumulate a JsonElement -
serialize
protected boolean serializeWhether to stream to the jsonWriter -
writer
The writer for generalized object notation. May support streaming. -
gonProvider
The provider for building in memory objects. -
errorHandler
-
-
Constructor Details
-
AccContext
-
-
Method Details
-
materializing
Create a context that only materializes -
serializing
public static AccContextRdf serializing(com.google.gson.Gson gson, com.google.gson.stream.JsonWriter jsonWriter) -
serializing
-
serializing
-
setWriter
-
setErrorHandler
-
getErrorHandler
-
isMaterialize
public boolean isMaterialize() -
isSerialize
public boolean isSerialize() -
getJsonWriter
-
getGonProvider
-
setGonProvider
-