@ThreadSafe public final class WebUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
convertByteArrayToStringWithoutEscape(byte[] data,
int offset,
int length)
Converts a byte array to string.
|
static NodeInfo[] |
generateOrderedNodeInfos(Collection<WorkerInfo> workerInfos)
Order the nodes by hostName and generate
NodeInfo list for UI display. |
public static String convertByteArrayToStringWithoutEscape(byte[] data, int offset, int length)
data
- byte arrayoffset
- offsetlength
- number of bytes to encodepublic static NodeInfo[] generateOrderedNodeInfos(Collection<WorkerInfo> workerInfos)
NodeInfo
list for UI display.workerInfos
- the list of WorkerInfo
objectsNodeInfo
objectsCopyright © 2023. All Rights Reserved.