void readAttributes(ByteBuffer byteBuffer) throws IOException { int nAttributes = byteBuffer.getInt(); while (nAttributes-- > 0) { String key = StringUtils.readString(byteBuffer); String value = StringUtils.readString(byteBuffer); setAttribute(key, value); } }
void readAttributes(ByteBuffer byteBuffer) throws IOException { int nAttributes = byteBuffer.getInt(); while (nAttributes-- > 0) { String key = StringUtils.readString(byteBuffer); String value = StringUtils.readString(byteBuffer); setAttribute(key, value); } }