Package org.aksw.jenax.io.json.writer
Class ObjectNotationWriterMapper<KI,KO,VI,VO>
java.lang.Object
org.aksw.jenax.io.json.writer.ObjectNotationWriterMapper<KI,KO,VI,VO>
- All Implemented Interfaces:
Flushable,ObjectNotationWriter<KI,VI>
public class ObjectNotationWriterMapper<KI,KO,VI,VO>
extends Object
implements ObjectNotationWriter<KI,VI>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ObjectNotationWriter<KO,VO> protected GonProvider<KO,VO> -
Constructor Summary
ConstructorsConstructorDescriptionObjectNotationWriterMapper(ObjectNotationWriter<KO, VO> delegate, GonProvider<KO, VO> gonProvider, Function<? super KI, ? extends KO> keyMapper, Function<? super VI, ? extends Object> valueMapper) -
Method Summary
Modifier and TypeMethodDescriptionendArray()voidflush()protected ObjectNotationWriter<KO,VO> Write a primitive value (should exclude null)
-
Field Details
-
delegate
-
gonProvider
-
keyMapper
-
valueMapper
-
-
Constructor Details
-
ObjectNotationWriterMapper
-
-
Method Details
-
getDelegate
-
flush
- Specified by:
flushin interfaceFlushable- Throws:
IOException
-
beginArray
- Specified by:
beginArrayin interfaceObjectNotationWriter<KI,KO> - Throws:
IOException
-
endArray
- Specified by:
endArrayin interfaceObjectNotationWriter<KI,KO> - Throws:
IOException
-
beginObject
- Specified by:
beginObjectin interfaceObjectNotationWriter<KI,KO> - Throws:
IOException
-
endObject
- Specified by:
endObjectin interfaceObjectNotationWriter<KI,KO> - Throws:
IOException
-
name
- Specified by:
namein interfaceObjectNotationWriter<KI,KO> - Throws:
IOException
-
value
Write a primitive value (should exclude null)- Specified by:
valuein interfaceObjectNotationWriter<KI,KO> - Throws:
IOException
-
nullValue
- Specified by:
nullValuein interfaceObjectNotationWriter<KI,KO> - Throws:
IOException
-