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

org.gwtproject.rpc.serialization.api.SerializationStreamWriter Maven / Gradle / Ivy

There is a newer version: 1.0-alpha-8
Show newest version
package org.gwtproject.rpc.serialization.api;

/**
 * Interface describing how values can be written to a stream. Implementations decide
 * how to wrap {@link TypeSerializer} and how to provide the finished, serialized data
 * to be sent over the wire.
 *
 * @see SerializationStreamReader
 */
public interface SerializationStreamWriter extends com.google.gwt.user.client.rpc.SerializationStreamWriter {

    /**
     *
     * @param value
     * @throws SerializationException
     */
    void writeBoolean(boolean value) throws SerializationException;

    /**
     *
     * @param value
     * @throws SerializationException
     */
    void writeByte(byte value) throws SerializationException;

    /**
     *
     * @param value
     * @throws SerializationException
     */
    void writeChar(char value) throws SerializationException;

    /**
     *
     * @param value
     * @throws SerializationException
     */
    void writeDouble(double value) throws SerializationException;

    /**
     *
     * @param value
     * @throws SerializationException
     */
    void writeFloat(float value) throws SerializationException;

    /**
     *
     * @param value
     * @throws SerializationException
     */
    void writeInt(int value) throws SerializationException;

    /**
     *
     * @param value
     * @throws SerializationException
     */
    void writeLong(long value) throws SerializationException;

    /**
     *
     * @param value
     * @throws SerializationException
     */
    void writeObject(Object value) throws SerializationException, com.google.gwt.user.client.rpc.SerializationException;

    /**
     *
     * @param value
     * @throws SerializationException
     */
    void writeShort(short value) throws SerializationException;

    /**
     * 
     * @param value
     * @throws SerializationException
     */
    void writeString(String value) throws SerializationException;
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy