Class JASN1Utils

java.lang.Object
org.apache.nifi.jasn1.JASN1Utils

public class JASN1Utils extends Object
  • Field Details

    • logger

      private static org.slf4j.Logger logger
    • getterCache

      private static final com.github.benmanes.caffeine.cache.LoadingCache<Tuple<Class<? extends com.beanit.asn1bean.ber.types.BerType>,String>,Method> getterCache
      Since the same class can be read many times in case reading an array, having a cache can reduce processing time. Class.getDeclaredMethod is time consuming.
  • Constructor Details

    • JASN1Utils

      public JASN1Utils()
  • Method Details

    • getGetter

      private static Method getGetter(Tuple<Class<? extends com.beanit.asn1bean.ber.types.BerType>,String> methodKey)
    • getSeqOfElementType

      public static Class getSeqOfElementType(Field seqOfField)
    • isRecordField

      public static boolean isRecordField(Field field)
    • getSeqOfField

      public static Field getSeqOfField(Class<?> type)
    • toGetterMethod

      public static String toGetterMethod(String fieldName)
    • invokeGetter

      public static Object invokeGetter(com.beanit.asn1bean.ber.types.BerType model, String methodName)