1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.universAAL.lddi.lib.ieeex73std.org.bn.coders;
18
19 import java.io.OutputStream;
20
21 import java.lang.reflect.Field;
22
23 public interface IASN1TypesEncoder {
24 int encodeClassType(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception;
25 int encodeSequence(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception;
26 int encodeChoice(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception;
27 int encodeEnum(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception;
28 int encodeEnumItem(Object enumConstant, Class enumClass, OutputStream stream, ElementInfo elementInfo) throws Exception ;
29 int encodeBoolean(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception;
30 int encodeAny(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception ;
31 int encodeNull(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception ;
32 int encodeInteger(Object object, OutputStream steam, ElementInfo elementInfo) throws Exception ;
33 int encodeReal(Object object, OutputStream steam, ElementInfo elementInfo) throws Exception ;
34 int encodeOctetString(Object object, OutputStream steam, ElementInfo elementInfo) throws Exception ;
35 int encodeBitString(Object object, OutputStream steam, ElementInfo elementInfo) throws Exception ;
36 int encodeObjectIdentifier(Object object, OutputStream steam, ElementInfo elementInfo) throws Exception ;
37 int encodeString(Object object, OutputStream steam, ElementInfo elementInfo) throws Exception ;
38 int encodeSequenceOf(Object object, OutputStream steam, ElementInfo elementInfo) throws Exception ;
39 int encodeElement(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception;
40 int encodeBoxedType(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception;
41 int encodePreparedElement(Object object, OutputStream stream, ElementInfo elementInfo) throws Exception;
42 Object invokeGetterMethodForField(Field field, Object object, ElementInfo elementInfo) throws Exception;
43 boolean invokeSelectedMethodForField(Field field, Object object, ElementInfo elementInfo) throws Exception;
44 }