MessageParts should be a class
[netconf.git] / netconf / netconf-netty-util / src / main / java / org / opendaylight / netconf / nettyutil / handler / MessageParts.java
1 /*
2  * Copyright (c) 2018 Inocybe Technologies and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.netconf.nettyutil.handler;
9
10 import static java.nio.charset.StandardCharsets.UTF_8;
11
12 import org.opendaylight.netconf.util.messages.NetconfMessageConstants;
13
14 /**
15  * netconf message part constants as bytes.
16  *
17  * @author Thomas Pantelis
18  */
19 final class MessageParts {
20     static final byte[] END_OF_MESSAGE = NetconfMessageConstants.END_OF_MESSAGE.getBytes(UTF_8);
21     static final byte[] START_OF_CHUNK = NetconfMessageConstants.START_OF_CHUNK.getBytes(UTF_8);
22     static final byte[] END_OF_CHUNK = NetconfMessageConstants.END_OF_CHUNK.getBytes(UTF_8);
23
24     private MessageParts() {
25         // Hidden on purpose
26     }
27 }