Package org.robolectric.res.android
Class ResStringPool
- java.lang.Object
-
- org.robolectric.res.android.ResStringPool
-
public class ResStringPool extends Object
Convenience class for accessing data in a ResStringPool resource.
-
-
Constructor Summary
Constructors Constructor Description ResStringPool()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
finalize()
int
getError()
static ResStringPool
getNativeObject(long nativeId)
long
getNativePtr()
int
indexOfString(String str)
boolean
isUTF8()
int
setTo(ByteBuffer buf, int offset, int size, boolean copyData)
int
size()
String
string8At(int id, Ref<Integer> outLen)
String
stringAt(int idx)
ResourceTypes.ResStringPool_span
styleAt(int idx)
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
getNativePtr
public long getNativePtr()
-
getNativeObject
public static ResStringPool getNativeObject(long nativeId)
-
setTo
public int setTo(ByteBuffer buf, int offset, int size, boolean copyData)
-
stringAt
public String stringAt(int idx)
-
styleAt
public final ResourceTypes.ResStringPool_span styleAt(int idx)
-
indexOfString
public int indexOfString(String str)
-
size
public int size()
-
isUTF8
public boolean isUTF8()
-
getError
public int getError()
-
-