com.refinitiv.eta.json.converter.JsonBuffer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of etajConverter Show documentation
Show all versions of etajConverter Show documentation
Elektron Transport API (ETA) Java Edition Converter Classes
The newest version!
/*|-----------------------------------------------------------------------------
*| This source code is provided under the Apache 2.0 license
*| and is provided AS IS with no warranty or guarantee of fit for purpose.
*| See the project's LICENSE.md for details.
*| Copyright (C) 2019-2022 LSEG. All rights reserved.
*|-----------------------------------------------------------------------------
*/
package com.refinitiv.eta.json.converter;
class JsonBuffer {
JsonBuffer() {}
JsonBuffer(int startLength) {
data = new byte[startLength];
}
public byte[] data;
public int position;
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < position; i++)
sb.append((char)data[i]);
return sb.toString();
}
}