Back to project page JsonPullParser.
The source code is released under:
Apache License
If you think the Android project JsonPullParser listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.vvakame.util.jsonpullparser.builder; /*from w w w .j a v a 2 s.c o m*/ import java.io.IOException; import java.io.Writer; import net.vvakame.util.jsonpullparser.JsonFormatException; import net.vvakame.util.jsonpullparser.JsonPullParser; /** * JSON property coder. * @author vvakame * @param <T> * @param <P> */ public abstract class JsonPropertyCoder<T, P> { String name; protected JsonModelCoder<P> coder; protected JsonCoderRouter<P> router; /** * Encodes the given instance to JSON format. * @param writer * @param data * @author vvakame * @throws IOException */ public abstract void encode(Writer writer, T data) throws IOException; /** * Decodes the given JSON data to an instance. * @param parser * @param data * @author vvakame * @throws JsonFormatException * @throws IOException */ public abstract void decode(JsonPullParser parser, T data) throws IOException, JsonFormatException; }