Copyright update
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / serialization / OFSerializer.java
index 2c88d0a0c766794ff993a80dcf392f56c0f20020..f514f14015edecd260f066bf8cc6615dae8bfae6 100644 (file)
@@ -1,35 +1,42 @@
-/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */\r
-package org.opendaylight.openflowjava.protocol.impl.serialization;\r
-\r
-import io.netty.buffer.ByteBuf;\r
-\r
-import org.opendaylight.yangtools.yang.binding.DataObject;\r
-\r
-/**\r
- * Uniform interface for serializing factories\r
- * @author michal.polkorab\r
- * @author timotej.kubas\r
- * @param <E> message type\r
- */\r
-public interface OFSerializer <E extends DataObject> {\r
-\r
-    /**\r
-     * Transforms POJO/DTO into byte message (ByteBuf).\r
-     * @param version version of used OF Protocol\r
-     * @param out ByteBuf used for output\r
-     * @param message message that will be transformed into ByteBuf\r
-     */\r
-    public abstract void messageToBuffer(short version, ByteBuf out, E message);\r
-    \r
-    /**\r
-     * Compute length of received message\r
-     * @param message \r
-     * @return computed length\r
-     */\r
-    public abstract int computeLength(E message);\r
-    \r
-    /**\r
-     * @return message code type\r
-     */\r
-    public byte getMessageType();\r
-}\r
+/*
+ * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
+package org.opendaylight.openflowjava.protocol.impl.serialization;
+
+import io.netty.buffer.ByteBuf;
+
+import org.opendaylight.yangtools.yang.binding.DataObject;
+
+/**
+ * Uniform interface for serializing factories
+ * @author michal.polkorab
+ * @author timotej.kubas
+ * @param <E> message type
+ */
+public interface OFSerializer <E extends DataObject> {
+
+    /**
+     * Transforms POJO/DTO into byte message (ByteBuf).
+     * @param version version of used OF Protocol
+     * @param out ByteBuf used for output
+     * @param message message that will be transformed into ByteBuf
+     */
+    public abstract void messageToBuffer(short version, ByteBuf out, E message);
+    
+    /**
+     * Compute length of received message
+     * @param message 
+     * @return computed length
+     */
+    public abstract int computeLength(E message);
+    
+    /**
+     * @return message code type
+     */
+    public byte getMessageType();
+}