Class ElfString


  • public class ElfString
    extends java.lang.Object
    • Constructor Detail

      • ElfString

        public ElfString()
        DO NOT USE THIS CONSTRUCTOR, USE create*(GenericFactory ...) FACTORY METHODS INSTEAD.
    • Method Detail

      • createElfString

        public static ElfString createElfString​(FactoryBundledWithBinaryReader reader,
                                                int stringOffset,
                                                ElfHeader header)
                                         throws java.io.IOException
        Read an ElfString at the readers current position. ElfString only supports null-terminated ASCII strings.
        Parameters:
        reader - reader positioned at start of string
        stringOffset - string offset from start of string table
        header - Elf header object
        Returns:
        Elf string object
        Throws:
        java.io.IOException
      • getString

        public java.lang.String getString()
        Returns:
        string object
      • getStringOffset

        public int getStringOffset()
        Returns:
        string offset within string table