MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / stringToBytes

Method stringToBytes

test/storage/MockBase.java:897–899  ·  view source on GitHub ↗

Helper to convert a hex encoded string into a byte array. Warning: This method won't pad the string to make sure it's an even number of bytes. @param bytes The hex encoded string to convert @return A byte array from the hex string @throws IllegalArgumentException if the string contains illega

(final String bytes)

Source from the content-addressed store, hash-verified

895 * or can't be converted.
896 */
897 public static byte[] stringToBytes(final String bytes) {
898 return DatatypeConverter.parseHexBinary(bytes);
899 }
900
901 /** @return Returns the ASCII character set */
902 public static Charset ASCII() {

Callers 15

beforeMethod · 0.95
dumpRawAndDeleteMethod · 0.95
dumpImportAndDeleteMethod · 0.95
writeCompactedDataMethod · 0.95
writeAppendDataPointsMethod · 0.95
TestFsckClass · 0.95
TestFsckWRollupsClass · 0.95
scannerExceptionMethod · 0.95
scannerExceptionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected