Package brut.androlib.res.decoder
Class StringBlock
java.lang.Object
brut.androlib.res.decoder.StringBlock
-
Method Summary
Modifier and TypeMethodDescriptionintFinds index of the string.getHTML(int index) getString(int index) Returns raw string (without any styling information) at specified index.static StringBlockreadWithChunk(brut.util.ExtCountingDataInput reader) static StringBlockreadWithoutChunk(brut.util.ExtCountingDataInput reader, int startPosition, int headerSize, int chunkSize)
-
Method Details
-
readWithChunk
- Throws:
IOException
-
readWithoutChunk
public static StringBlock readWithoutChunk(brut.util.ExtCountingDataInput reader, int startPosition, int headerSize, int chunkSize) throws IOException - Throws:
IOException
-
getString
Returns raw string (without any styling information) at specified index.- Parameters:
index- int- Returns:
- String
-
getHTML
- Parameters:
index- Location (index) of string to process to HTML- Returns:
- String Returns string with style tags (html-like).
-
find
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)
-