-/*\r
- * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-\r
-package org.opendaylight.openflowjava.protocol.impl.serialization.action;\r
-\r
-import io.netty.buffer.ByteBuf;\r
-\r
-import org.opendaylight.openflowjava.protocol.impl.util.ByteBufUtils;\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev131002.IpAddressAction;\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev130731.actions.grouping.Action;\r
-\r
-/**\r
- * @author michal.polkorab\r
- *\r
- */\r
-public abstract class OF10AbstractIpAddressActionSerializer extends AbstractActionSerializer {\r
-\r
- @Override\r
- public void serialize(final Action action, final ByteBuf outBuffer) {\r
- super.serialize(action, outBuffer);\r
- Iterable<String> addressGroups = ByteBufUtils.DOT_SPLITTER\r
- .split(action.getAugmentation(IpAddressAction.class).getIpAddress().getValue());\r
- for (String group : addressGroups) {\r
- outBuffer.writeByte(Short.parseShort(group));\r
- }\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.serialization.action;
+
+import io.netty.buffer.ByteBuf;
+
+import org.opendaylight.openflowjava.util.ByteBufUtils;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev131002.IpAddressAction;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev130731.actions.grouping.Action;
+
+/**
+ * @author michal.polkorab
+ *
+ */
+public abstract class OF10AbstractIpAddressActionSerializer extends AbstractActionSerializer {
+
+ @Override
+ public void serialize(final Action action, final ByteBuf outBuffer) {
+ super.serialize(action, outBuffer);
+ Iterable<String> addressGroups = ByteBufUtils.DOT_SPLITTER
+ .split(action.getAugmentation(IpAddressAction.class).getIpAddress().getValue());
+ for (String group : addressGroups) {
+ outBuffer.writeByte(Short.parseShort(group));
+ }
+ }
+}