Class StringBlock

java.lang.Object
brut.androlib.res.decoder.StringBlock

public class StringBlock extends Object
  • Method Details

    • readWithChunk

      public static StringBlock readWithChunk(brut.util.ExtDataInput reader) throws IOException
      Throws:
      IOException
    • readWithoutChunk

      public static StringBlock readWithoutChunk(brut.util.ExtDataInput reader, int chunkSize) throws IOException
      Throws:
      IOException
    • getString

      public String getString(int index)
      Returns raw string (without any styling information) at specified index.
      Parameters:
      index - int
      Returns:
      String
    • getHTML

      public String getHTML(int index)
      Parameters:
      index - Location (index) of string to process to HTML
      Returns:
      String Returns string with style tags (html-like).
    • find

      public int find(String string)
      Finds index of the string. Returns -1 if the string was not found.
      Parameters:
      string - String to index location of
      Returns:
      int (Returns -1 if not found)