1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.asn1.codec;
18
19
20 /***
21 * Defines common decoding methods for byte array decoders.
22 *
23 * @author Apache Software Foundation
24 * @version $Id: BinaryDecoder.java,v 1.10 2004/06/15 18:14:15 ggregory Exp $
25 */
26 public interface BinaryDecoder extends Decoder {
27
28 /***
29 * Decodes a byte array and returns the results as a byte array.
30 *
31 * @param pArray A byte array which has been encoded with the
32 * appropriate encoder
33 *
34 * @return a byte array that contains decoded content
35 *
36 * @throws org.apache.asn1.codec.DecoderException A decoder exception is thrown
37 * if a Decoder encounters a failure condition during
38 * the decode process.
39 */
40 byte[] decode(byte[] pArray) throws DecoderException;
41 }
42