Beispiel #1
0
  /**
   * @param array
   * @return
   * @throws IOException
   */
  public static Attribute getAttributes(final byte[] array) throws IOException {
    final Elf emptyElf = new Elf();
    emptyElf.ehdr = new ElfHeader(array);
    emptyElf.sections = new Section[0];
    final Attribute attrib = emptyElf.getAttributes();
    emptyElf.dispose();

    return attrib;
  }
Beispiel #2
0
 /**
  * @param file
  * @return
  * @throws IOException
  */
 public static Attribute getAttributes(final File file) throws IOException {
   final Elf elf = new Elf(file);
   final Attribute attrib = elf.getAttributes();
   elf.dispose();
   return attrib;
 }