java.lang.Object
org.yamcs.utils.StringConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarrayToHexString(byte[] b) static StringarrayToHexString(byte[] b, boolean beautify) static StringarrayToHexString(byte[] b, int offset, int length) static StringarrayToHexString(byte[] b, int offset, int length, boolean beautify) static Stringstatic byte[]Convert a hex string into a byte array.static StringidListToString(List<org.yamcs.protobuf.Yamcs.NamedObjectId> idList) Convert a list of NamedObjectId to a pretty string for use in log messages etc.static StringidToString(org.yamcs.protobuf.Yamcs.NamedObjectId id) Convert a NamedObjectId to a pretty string for use in log messages etc.static StringtoString(org.yamcs.protobuf.Commanding.CommandId cmdId) static StringtoString(org.yamcs.protobuf.Yamcs.Value rv) static StringtoString(org.yamcs.protobuf.Yamcs.Value rv, boolean withType) Deprecated.
-
Constructor Details
-
StringConverter
public StringConverter()
-
-
Method Details
-
toString
-
toString
Deprecated.UseObject.toString()instead. -
arrayToHexString
-
arrayToHexString
-
arrayToHexString
-
arrayToHexString
-
byteBufferToHexString
-
hexStringToArray
Convert a hex string into a byte array. If the string has an odd number of hex digits, it is padded with 0 at the beginning.- Parameters:
s- - string to be converted- Returns:
- binary array representation of the hex string
-
idToString
Convert a NamedObjectId to a pretty string for use in log messages etc. This gives a better formatting than the default protobuf-generated toString. -
idListToString
Convert a list of NamedObjectId to a pretty string for use in log messages etc. This gives a better formatting than the default protobuf-generated toString. -
toString
-