Copyright update
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / deserialization / OFDeserializer.java
index 8f64ed3dea80bdf4fa648c3889b4089d00129bb5..c4df5df0697ad401477db5d9e84ab0661afbecdb 100644 (file)
@@ -1,26 +1,33 @@
-/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */\r
-package org.opendaylight.openflowjava.protocol.impl.deserialization;\r
-\r
-import org.opendaylight.yangtools.yang.binding.DataObject;\r
-\r
-import io.netty.buffer.ByteBuf;\r
-\r
-/**\r
- * Uniform interface for deserializing factories\r
- * @author michal.polkorab\r
- * @author timotej.kubas\r
- * @param <E> message code type\r
- */\r
-public interface OFDeserializer<E extends DataObject> {\r
-\r
-    /**\r
-     * Transforms byte message into POJO/DTO (of type E).\r
-     * Assumes that input ByteBuf's readerIndex is pointing on length in OpenFlow header\r
-     * \r
-     * @param rawMessage message as bytes in ByteBuf\r
-     * @param version version of used OF Protocol\r
-     * @return HelloMessage as DataObject\r
-     */\r
-    public abstract E bufferToMessage(ByteBuf rawMessage, short version);\r
-\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.deserialization;
+
+import org.opendaylight.yangtools.yang.binding.DataObject;
+
+import io.netty.buffer.ByteBuf;
+
+/**
+ * Uniform interface for deserializing factories
+ * @author michal.polkorab
+ * @author timotej.kubas
+ * @param <E> message code type
+ */
+public interface OFDeserializer<E extends DataObject> {
+
+    /**
+     * Transforms byte message into POJO/DTO (of type E).
+     * Assumes that input ByteBuf's readerIndex is pointing on length in OpenFlow header
+     * 
+     * @param rawMessage message as bytes in ByteBuf
+     * @param version version of used OF Protocol
+     * @return HelloMessage as DataObject
+     */
+    public abstract E bufferToMessage(ByteBuf rawMessage, short version);
+
+}