Files
IM-server-new/broker/src/main/java/io/moquette/spi/impl/DebugUtils.java
T

32 lines
850 B
Java
Raw Normal View History

/*
2017-03-19 22:01:23 +01:00
* Copyright (c) 2012-2017 The original author or authors
* ------------------------------------------------------
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* The Apache License v2.0 is available at
* http://www.opensource.org/licenses/apache2.0.php
*
* You may elect to redistribute this code under either of these licenses.
*/
2017-02-01 15:49:53 +01:00
package io.moquette.spi.impl;
import io.netty.buffer.ByteBuf;
import java.nio.ByteBuffer;
/**
*
* @author andrea
*/
class DebugUtils {
2017-02-01 15:49:53 +01:00
static String payload2Str(ByteBuf content) {
2017-03-05 12:20:39 +01:00
return new String(content.copy ().array());
}
}