List of usage examples for io.vertx.core.buffer Buffer getString
String getString(int start, int end, String enc);
From source file:io.advantageous.qbit.vertx.BufferUtils.java
License:Apache License
public static String readString(final Buffer buffer, final int[] location) { final short size = buffer.getShort(location[0]); int start = location[0] + 2; int end = start + size; final String utf_8 = buffer.getString(start, end, StandardCharsets.UTF_8.displayName()); location[0] = end;//w ww.j a v a2 s. com return utf_8; }