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

hprose.io.serialize.ByteSerializer Maven / Gradle / Ivy

/**********************************************************\
|                                                          |
|                          hprose                          |
|                                                          |
| Official WebSite: http://www.hprose.com/                 |
|                   http://www.hprose.org/                 |
|                                                          |
\**********************************************************/
/**********************************************************\
 *                                                        *
 * ByteSerializer.java                                    *
 *                                                        *
 * byte serializer class for Java.                        *
 *                                                        *
 * LastModified: Aug 6, 2016                              *
 * Author: Ma Bingyao                   *
 *                                                        *
\**********************************************************/

package hprose.io.serialize;

import java.io.IOException;

public final class ByteSerializer implements Serializer {

    public final static ByteSerializer instance = new ByteSerializer();

    public final void write(Writer writer, Byte obj) throws IOException {
        ValueWriter.write(writer.stream, obj);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy