Class StringPoolChunk.StringPoolStyle
- java.lang.Object
-
- com.google.devrel.gmscore.tools.apk.arsc.StringPoolChunk.StringPoolStyle
-
- All Implemented Interfaces:
SerializableResource
- Enclosing class:
- StringPoolChunk
public static class StringPoolChunk.StringPoolStyle extends java.lang.Object implements SerializableResource
Represents all of the styles for a particular string. The string is determined by its index inStringPoolChunk.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()byte[]toByteArray()Converts this resource into an array of bytes representation.byte[]toByteArray(boolean shrink)Converts this resource into an array of bytes representation.java.lang.StringtoString()Returns a brief description of the contents of this style.
-
-
-
Method Detail
-
toByteArray
public byte[] toByteArray() throws java.io.IOExceptionDescription copied from interface:SerializableResourceConverts this resource into an array of bytes representation.- Specified by:
toByteArrayin interfaceSerializableResource- Returns:
- An array of bytes representing this resource.
- Throws:
java.io.IOException
-
toByteArray
public byte[] toByteArray(boolean shrink) throws java.io.IOExceptionDescription copied from interface:SerializableResourceConverts this resource into an array of bytes representation.- Specified by:
toByteArrayin interfaceSerializableResource- Parameters:
shrink- True if, when converting to a byte array, this resource can modify the returned bytes in an effort to reduce the size.- Returns:
- An array of bytes representing this resource.
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Returns a brief description of the contents of this style. The representation of this information is subject to change, but below is a typical example:"StringPoolStyle{spans=[StringPoolSpan{foo, start=0, stop=5}, ...]}"- Overrides:
toStringin classjava.lang.Object
-
-