public interface BinaryCodec extends BinaryEncoder, BinaryDecoder, ICodec<byte[]>
byte[] decode(byte[] source)
throws CodecException
BinaryDecoderdecode 在接口中 BinaryDecoderdecode 在接口中 Decoder<byte[],byte[]>decode 在接口中 ICodec<byte[]>source - A byte array which has been encoded with the appropriate encoderCodecException - A decoder exception is thrown if a Decoder encounters a failure condition during the decode process.byte[] encode(byte[] source)
throws CodecException
BinaryEncoderencode 在接口中 BinaryEncoderencode 在接口中 Encoder<byte[],byte[]>encode 在接口中 ICodec<byte[]>source - Data to be encodedCodecException - thrown if the Encoder encounters a failure condition during the encoding process.Copyright © 2022. All rights reserved.