/**********************************************************\ | | | hprose | | | | Official WebSite: http://www.hprose.com/ | | http://www.hprose.org/ | | | \**********************************************************/ /**********************************************************\ * * * IntegerSerializer.java * * * * integer serializer class for Java. * * * * LastModified: Aug 6, 2016 * * Author: Ma Bingyao <andot@hprose.com> * * * \**********************************************************/ package net.hasor.libs.com.hprose.io.serialize; import java.io.IOException; public final class IntegerSerializer implements Serializer<Integer> { public final static IntegerSerializer instance = new IntegerSerializer(); public final void write(Writer writer, Integer obj) throws IOException { ValueWriter.write(writer.stream, obj); } }