All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.intarsys.tools.serialize.BONSerializationFactory Maven / Gradle / Ivy

There is a newer version: 4.11
Show newest version
package de.intarsys.tools.serialize;

/**
 * The {@link ISerializationFactory} for "BON" serializing and deserializing.
 * 

* "BON", basic object notation is a simple, self contained, readable * serialization format for primitive types, array and maps. The serialization * format is very similiar to "JSON". * */ public class BONSerializationFactory implements ISerializationFactory { public static final String MIMETYPE = "application/vnd.intarsys.primitive"; @Override public IDeserializer createDeserializer(SerializationContext context) { return new BONDeserializer( ((StreamSerializationContext) context).getInputStream()); } @Override public ISerializer createSerializer(SerializationContext context) { return new BONSerializer( ((StreamSerializationContext) context).getOutputStream()); } @Override public Class getSerializationType() { return Object.class; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy