aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper/ChannelBufferTools.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/helper/ChannelBufferTools.java')
-rw-r--r--src/org/traccar/helper/ChannelBufferTools.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/helper/ChannelBufferTools.java b/src/org/traccar/helper/ChannelBufferTools.java
index d8d74b6ea..99da43b54 100644
--- a/src/org/traccar/helper/ChannelBufferTools.java
+++ b/src/org/traccar/helper/ChannelBufferTools.java
@@ -89,7 +89,7 @@ public final class ChannelBufferTools {
return value;
}
- public static byte[] convertHexString(String in) {
+ public static byte[] hexToBytes(String in) {
int count = in.length() / 2;
byte[] out = new byte[count];
for (int i = 0; i < count; i++) {
@@ -98,7 +98,7 @@ public final class ChannelBufferTools {
return out;
}
- public static String convertByteArray(byte[] in) {
+ public static String bytesToHex(byte[] in) {
StringBuilder out = new StringBuilder();
Formatter formatter = new Formatter(out);
for (byte b : in) {