
com.siashan.toolkit.crypt.BinaryEncoder Maven / Gradle / Ivy
package com.siashan.toolkit.crypt;
/**
* 定义字节数组编码器的通用编码方法。
*
*/
public interface BinaryEncoder extends Encoder {
/**
* 对字节数组进行编码,并将编码后的数据作为字节数组返回。
*
* @param source
* 要编码的数据
* @return 包含编码数据的字节数组
* @throws EncoderException
* 如果编码器在编码过程中遇到故障条件,则引发。
*/
byte[] encode(byte[] source) throws EncoderException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy