Exemplo n.º 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;
  }
Exemplo n.º 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;
 }