public class

ELFStringTable

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.codeobject.ELFStringTable

Class Overview

Parser for ELF string tables.

Summary

Public Constructors
ELFStringTable(byte[] data)
Parse an encoded string table, such as the one found in a dynamic library's program table.
Public Methods
List<String> getAllStrings()
Retrieve all the strings stored in the table.
String getString(int index)
Retrieve the string at the given index in the table.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ELFStringTable (byte[] data)

Parse an encoded string table, such as the one found in a dynamic library's program table.

Parameters
data string table data, cannot be empty and the first byte must be 0

Public Methods

public List<String> getAllStrings ()

Retrieve all the strings stored in the table.

public String getString (int index)

Retrieve the string at the given index in the table. On error, this method it returns null.

Parameters
index string index, 0-based
Returns
  • the string, null on error