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

com.siashan.toolkit.crypt.BinaryDecoder Maven / Gradle / Ivy

package com.siashan.toolkit.crypt;

/**
 * 定义字节数组解码器的常用解码方法。
 *
 */
public interface BinaryDecoder extends Decoder {

    /**
     * 解码字节数组并将结果作为字节数组返回
     *
     * @param source
     *            用适当的编码器编码的字节数组
     * @return 包含已解码内容的字节数组
     * @throws DecoderException
     *             如果解码器在解码过程中遇到故障情况,将引发解码器异常。
     */
    byte[] decode(byte[] source) throws DecoderException;
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy