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

org.atmosphere.cpr.Serializer Maven / Gradle / Ivy

There is a newer version: 3.0.13
Show newest version
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.atmosphere.cpr;

import java.io.IOException;
import java.io.OutputStream;

/**
 * Serialize the {@link Object} the result of invoking {@link Broadcaster#broadcast}
 *
 * @author Paul Sandoz
 * @author Jeanfrancois Arcand
 */
public interface Serializer {

    /**
     * Serialize the {@link Object} using the {@link OutputStream}
     * @param os The {@link java.io.OutputStream} to use when writing.
     * @param o The broacasted object.
     * @throws IOException
     */
    void write(OutputStream os, Object o) throws IOException;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy