test_class.declarator: log = LoggerFactory.getLogger(EbtsUtilsTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger log = LoggerFactory.getLogger(EbtsUtilsTest.class);
test_class.type: Logger
test_class.var_name: log
test_class.file: Jet/src/test/java/org/mitre/jet/ebts/EbtsUtilsTest.java
test_class.identifier: EbtsUtilsTest
test_case.body: @Test
      public void testByteArrayToInt() throws  Exception {
          byte[] data = new byte[4];
          data[0] = 0x00;
          data[1] = 0x00;
          data[2] = (byte) 0x98;
          data[3] = (byte) 0xF2;
  
          int val = EbtsUtils.byteArrayToInt(data);
          assertEquals(39154,val);
  
          log.debug("{}",val);
  
          data = new byte[1];
          data[0] = (byte) 0xFF;
  
          val = EbtsUtils.byteArrayToInt(data);
  
          log.debug("{}",val);
  
          data = new byte[2];
          data[0] = (byte) 0xFF;
          data[1] = (byte) 0xFF;
  
          val = EbtsUtils.byteArrayToInt(data);
  
          log.debug("{}",val);
  
      }
test_case.class_method_signature: EbtsUtilsTest.testByteArrayToInt()
test_case.full_signature: @Test public void testByteArrayToInt()
test_case.identifier: testByteArrayToInt
test_case.invocations: byteArrayToInt assertEquals debug byteArrayToInt debug byteArrayToInt debug
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testByteArrayToInt()
focal_class.declarator: log = LoggerFactory.getLogger(EbtsUtils.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(EbtsUtils.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: tagMap = loadPropertiesFile()
focal_class.modifier: private static final
focal_class.original_string: private static final Map<Integer, HashBiMap<Integer, String>> tagMap = loadPropertiesFile();
focal_class.type: Map<Integer, HashBiMap<Integer, String>>
focal_class.var_name: tagMap
focal_class.declarator: binaryHeaderTypes = Sets.newHashSet(3,4,5,6,7,8)
focal_class.modifier: private static final
focal_class.original_string: private static final Set<Integer> binaryHeaderTypes = Sets.newHashSet(3,4,5,6,7,8);
focal_class.type: Set<Integer>
focal_class.var_name: binaryHeaderTypes
focal_class.declarator: genericRecordTypes = Sets.newHashSet(1,2,9,10,13,14,15,16,17)
focal_class.modifier: private static final
focal_class.original_string: private static final Set<Integer> genericRecordTypes = Sets.newHashSet(1,2,9,10,13,14,15,16,17);
focal_class.type: Set<Integer>
focal_class.var_name: genericRecordTypes
focal_class.file: Jet/src/main/java/org/mitre/jet/ebts/EbtsUtils.java
focal_class.identifier: EbtsUtils
focal_class.class_method_signature: EbtsUtils.EbtsUtils()
focal_class.full_signature: private  EbtsUtils()
focal_class.identifier: EbtsUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  EbtsUtils()
focal_class.class_method_signature: EbtsUtils.getBinaryHeaderTypes()
focal_class.full_signature: public static Set<Integer> getBinaryHeaderTypes()
focal_class.identifier: getBinaryHeaderTypes
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Set<Integer>
focal_class.signature: Set<Integer> getBinaryHeaderTypes()
focal_class.class_method_signature: EbtsUtils.getGenericRecordTypes()
focal_class.full_signature: public static Set<Integer> getGenericRecordTypes()
focal_class.identifier: getGenericRecordTypes
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Set<Integer>
focal_class.signature: Set<Integer> getGenericRecordTypes()
focal_class.class_method_signature: EbtsUtils.ensureExistence(final Map<Integer, HashBiMap<Integer, String>> map, final int recordType)
focal_class.full_signature: private static void ensureExistence(final Map<Integer, HashBiMap<Integer, String>> map, final int recordType)
focal_class.identifier: ensureExistence
focal_class.modifiers: private static
focal_class.parameters: (final Map<Integer, HashBiMap<Integer, String>> map, final int recordType)
focal_class.return: void
focal_class.signature: void ensureExistence(final Map<Integer, HashBiMap<Integer, String>> map, final int recordType)
focal_class.class_method_signature: EbtsUtils.loadPropertiesFile()
focal_class.full_signature: private static Map<Integer,HashBiMap<Integer,String>> loadPropertiesFile()
focal_class.identifier: loadPropertiesFile
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: Map<Integer,HashBiMap<Integer,String>>
focal_class.signature: Map<Integer,HashBiMap<Integer,String>> loadPropertiesFile()
focal_class.class_method_signature: EbtsUtils.tagToFieldNumber(final String tag)
focal_class.full_signature: public static int tagToFieldNumber(final String tag)
focal_class.identifier: tagToFieldNumber
focal_class.modifiers: public static
focal_class.parameters: (final String tag)
focal_class.return: int
focal_class.signature: int tagToFieldNumber(final String tag)
focal_class.class_method_signature: EbtsUtils.tagToRecordNumber(final String tag)
focal_class.full_signature: public static int tagToRecordNumber(final String tag)
focal_class.identifier: tagToRecordNumber
focal_class.modifiers: public static
focal_class.parameters: (final String tag)
focal_class.return: int
focal_class.signature: int tagToRecordNumber(final String tag)
focal_class.class_method_signature: EbtsUtils.splitTag(final String tag)
focal_class.full_signature: public static int[] splitTag(final String tag)
focal_class.identifier: splitTag
focal_class.modifiers: public static
focal_class.parameters: (final String tag)
focal_class.return: int[]
focal_class.signature: int[] splitTag(final String tag)
focal_class.class_method_signature: EbtsUtils.fieldNumberToMnemonic(final int recordType, final int fieldNumber)
focal_class.full_signature: public static String fieldNumberToMnemonic(final int recordType, final int fieldNumber)
focal_class.identifier: fieldNumberToMnemonic
focal_class.modifiers: public static
focal_class.parameters: (final int recordType, final int fieldNumber)
focal_class.return: String
focal_class.signature: String fieldNumberToMnemonic(final int recordType, final int fieldNumber)
focal_class.class_method_signature: EbtsUtils.fieldTagToMnemonic(final String tag)
focal_class.full_signature: public static String fieldTagToMnemonic(final String tag)
focal_class.identifier: fieldTagToMnemonic
focal_class.modifiers: public static
focal_class.parameters: (final String tag)
focal_class.return: String
focal_class.signature: String fieldTagToMnemonic(final String tag)
focal_class.class_method_signature: EbtsUtils.fieldMnemonicToNumber(final int recordType, final String fieldIdentifier)
focal_class.full_signature: public static int fieldMnemonicToNumber(final int recordType, final String fieldIdentifier)
focal_class.identifier: fieldMnemonicToNumber
focal_class.modifiers: public static
focal_class.parameters: (final int recordType, final String fieldIdentifier)
focal_class.return: int
focal_class.signature: int fieldMnemonicToNumber(final int recordType, final String fieldIdentifier)
focal_class.class_method_signature: EbtsUtils.convertOccurrenceList(final List<Occurrence> occurrences)
focal_class.full_signature: public static List<String> convertOccurrenceList(final List<Occurrence> occurrences)
focal_class.identifier: convertOccurrenceList
focal_class.modifiers: public static
focal_class.parameters: (final List<Occurrence> occurrences)
focal_class.return: List<String>
focal_class.signature: List<String> convertOccurrenceList(final List<Occurrence> occurrences)
focal_class.class_method_signature: EbtsUtils.convertStringList(final List<String> strings)
focal_class.full_signature: public static List<Occurrence> convertStringList(final List<String> strings)
focal_class.identifier: convertStringList
focal_class.modifiers: public static
focal_class.parameters: (final List<String> strings)
focal_class.return: List<Occurrence>
focal_class.signature: List<Occurrence> convertStringList(final List<String> strings)
focal_class.class_method_signature: EbtsUtils.convertStringList(final List<String> strings, final int limit)
focal_class.full_signature: public static List<Occurrence> convertStringList(final List<String> strings, final int limit)
focal_class.identifier: convertStringList
focal_class.modifiers: public static
focal_class.parameters: (final List<String> strings, final int limit)
focal_class.return: List<Occurrence>
focal_class.signature: List<Occurrence> convertStringList(final List<String> strings, final int limit)
focal_class.class_method_signature: EbtsUtils.convertStringListToSubFields(final List<String> strings)
focal_class.full_signature: public static List<SubField> convertStringListToSubFields(final List<String> strings)
focal_class.identifier: convertStringListToSubFields
focal_class.modifiers: public static
focal_class.parameters: (final List<String> strings)
focal_class.return: List<SubField>
focal_class.signature: List<SubField> convertStringListToSubFields(final List<String> strings)
focal_class.class_method_signature: EbtsUtils.byteArrayToInt(final byte[] bytes)
focal_class.full_signature: public static int byteArrayToInt(final byte[] bytes)
focal_class.identifier: byteArrayToInt
focal_class.modifiers: public static
focal_class.parameters: (final byte[] bytes)
focal_class.return: int
focal_class.signature: int byteArrayToInt(final byte[] bytes)
focal_class.class_method_signature: EbtsUtils.getMimeExtension(final byte[] data)
focal_class.full_signature: public static String getMimeExtension(final byte[] data)
focal_class.identifier: getMimeExtension
focal_class.modifiers: public static
focal_class.parameters: (final byte[] data)
focal_class.return: String
focal_class.signature: String getMimeExtension(final byte[] data)
focal_method.body: public static int byteArrayToInt(final byte[] bytes) {
  
          if (bytes.length == 4) {
              return Ints.fromByteArray(bytes);
          } else if (bytes.length == 2) {
              return Shorts.fromByteArray(bytes);
          } else if (bytes.length == 1) {
              return bytes[0] & 0xff;
          } else {
              throw new InputMismatchException("invalid data length of "+bytes.length);
          }
      }
focal_method.class_method_signature: EbtsUtils.byteArrayToInt(final byte[] bytes)
focal_method.full_signature: public static int byteArrayToInt(final byte[] bytes)
focal_method.identifier: byteArrayToInt
focal_method.invocations: fromByteArray fromByteArray
focal_method.modifiers: public static
focal_method.parameters: (final byte[] bytes)
focal_method.return: int
focal_method.signature: int byteArrayToInt(final byte[] bytes)