android.content.res
Class StringBlock
java.lang.Object
android.content.res.StringBlock
final class StringBlock
- extends Object
Conveniences for retrieving data out of a compiled string resource.
|
Constructor Summary |
StringBlock(byte[] data,
boolean useSparse)
|
StringBlock(byte[] data,
int offset,
int size,
boolean useSparse)
|
StringBlock(int obj,
boolean useSparse)
Create from an existing string block native object. |
|
Method Summary |
protected void |
finalize()
Called by the virtual machine when there are no longer any (non-weak)
references to the receiver. |
CharSequence |
get(int idx)
|
mStyleIDs
StringBlock.StyleIDs mStyleIDs
StringBlock
public StringBlock(byte[] data,
boolean useSparse)
StringBlock
public StringBlock(byte[] data,
int offset,
int size,
boolean useSparse)
StringBlock
StringBlock(int obj,
boolean useSparse)
- Create from an existing string block native object. This is
-extremely- dangerous -- only use it if you absolutely know what you
are doing! The given native object must exist for the entire lifetime
of this newly creating StringBlock.
get
public CharSequence get(int idx)
finalize
protected void finalize()
throws Throwable
- Description copied from class:
Object
- Called by the virtual machine when there are no longer any (non-weak)
references to the receiver. Subclasses can use this facility to guarantee
that any associated resources are cleaned up before the receiver is
garbage collected. Uncaught exceptions which are thrown during the
running of the method cause it to terminate immediately, but are
otherwise ignored.
Note: The virtual machine assumes that the implementation in class Object
is empty.
- Overrides:
finalize in class Object
- Throws:
Throwable - The virtual machine ignores any exceptions which are
thrown during finalization.
Please submit a feedback, bug or feature