All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ionic.sdk.core.codec.Hex Maven / Gradle / Ivy

Go to download

The Ionic Java SDK provides an easy-to-use interface to the Ionic Platform.

There is a newer version: 2.9.0
Show newest version
package com.ionic.sdk.core.codec;

/**
 * A utility class to perform hex encoding and decoding.
 *
 * @deprecated Please migrate usages to the replacement {@link Transcoder#hex()} factory method.
 */
public final class Hex implements BytesTranscoder {

    /**
     * Transform byte stream into equivalent hex string representation.
     *
     * @param bytes an array of bytes
     * @return string containing hex representation of input bytes
     * @deprecated Please migrate usages to the replacement {@link Transcoder#hex()} encode API.
     */
    @Deprecated
    @Override
    public String encode(final byte[] bytes) {
        return Transcoder.hex().encode(bytes);
    }

    /**
     * Transform hex string into equivalent raw byte array.
     *
     * @param hexText hex string representation of raw byte array
     * @return byte array containing decoded representation of input
     * @deprecated Please migrate usages to the replacement {@link Transcoder#hex()} decode API.
     */
    @Deprecated
    @Override
    public byte[] decode(final String hexText) {
        return Transcoder.hex().decode(hexText);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy