
org.atmosphere.cpr.Serializer Maven / Gradle / Ivy
/*
* 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