public class ParserFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Parser<T> |
forClass(Class<T> clazz)
Creates a Parser for the given class,
which should be one whose API conforms to CGIN's pattern
for an ASN.1 type represented by a Class.
|
static <T> Parser<T> |
forType(Type type)
Creates a Parser for the given type,
which should be one whose API conforms to CGIN's pattern for an ASN.1 type.
|
public static <T> Parser<T> forType(Type type)
forClass(Class)).type - a Type corresponding to an ASN.1 typepublic static <T> Parser<T> forClass(Class<T> clazz)
forType(Type).clazz - a Class corresponding to an ASN.1 type