com.cmpware.elf
Class StringTable

java.lang.Object
  extended by com.cmpware.elf.StringTable

public class StringTable
extends java.lang.Object

This describes an ELF String table section.

Copyright (c) 2004 Cmpware, Inc. All Rights Reserved.

Author:
SAG

Field Summary
static java.lang.String copyright
          Copyright string
 byte[] data
          The string table data
 
Constructor Summary
StringTable(byte[] data)
          This constructor takes in a byte array containing ASCII zero-terminated strings and makes them accessible by an index as required by the ELF specification.
 
Method Summary
 java.lang.String get(int index)
          This method returns the zero-terminated string starting at an index in the string table byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright
Copyright string

See Also:
Constant Field Values

data

public byte[] data
The string table data

Constructor Detail

StringTable

public StringTable(byte[] data)
This constructor takes in a byte array containing ASCII zero-terminated strings and makes them accessible by an index as required by the ELF specification.

Parameters:
data - The byte array containg the zero-terminated strings.
Method Detail

get

public java.lang.String get(int index)
This method returns the zero-terminated string starting at an index in the string table byte array.

Parameters:
index - The start index of the string.
Returns:
This method returns the zero-terminated string starting at an index in the string table byte array.