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

com.ionic.sdk.core.codec.BytesTranscoder 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;

/**
 * Extract a common interface from the different classes used to create textual representations of raw byte arrays.
 * Analogous to ISCryptoBytesTranscoder in "$IONIC_REPO_ROOT/IonicAgents/SDK/ISAgentSDK/ISCryptoLib/ISCryptoTypes.h".
 */
public interface BytesTranscoder {

    /**
     * Transform input into a textual representation.
     *
     * @param bytes byte array representation of data to be transformed
     * @return the encoded string
     */
    String encode(byte[] bytes);


    /**
     * Transform input into its raw byte array representation.
     *
     * @param string text representation of data to be transformed
     * @return the decoded byte array
     */
    byte[] decode(String string);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy