source: branches/objectmq-1.0/src/omq/common/util/Serializers/ISerializer.java

Last change on this file was 33, checked in by amoreno, 11 years ago

new release version

File size: 663 bytes
Line 
1package omq.common.util.Serializers;
2
3import omq.common.event.Event;
4import omq.common.message.Request;
5import omq.common.message.Response;
6import omq.exception.SerializerException;
7import omq.server.remote.request.RemoteObject;
8
9/**
10 *
11 * @author Sergi Toda <sergi.toda@estudiants.urv.cat>
12 *
13 */
14public interface ISerializer {
15        public byte[] serialize(Object obj) throws SerializerException;
16
17        public Request deserializeRequest(byte[] bytes, RemoteObject obj) throws SerializerException;
18
19        public Response deserializeResponse(byte[] bytes, Class<?> type) throws SerializerException;
20
21        public Event deserializeEvent(byte[] bytes) throws SerializerException;
22}
Note: See TracBrowser for help on using the repository browser.