Methods Summary |
---|
public void | close()
synchronized (this) {
if (mOpen) {
mOpen = false;
decOpenCountLocked();
}
}
|
private void | decOpenCountLocked()
mOpenCount--;
if (mOpenCount == 0) {
nativeDestroy(mNative);
if (mAssets != null) {
mAssets.xmlBlockGone();
}
}
|
protected void | finalize()
close();
|
private static final native int | nativeCreate(byte[] data, int offset, int size)
|
private static final native int | nativeCreateParseState(int obj)
|
private static final native void | nativeDestroy(int obj)
|
private static final native void | nativeDestroyParseState(int state)
|
private static final native int | nativeGetAttributeCount(int state)
|
private static final native int | nativeGetAttributeData(int state, int idx)
|
private static final native int | nativeGetAttributeDataType(int state, int idx)
|
private static final native int | nativeGetAttributeIndex(int state, java.lang.String namespace, java.lang.String name)
|
private static final native int | nativeGetAttributeName(int state, int idx)
|
private static final native int | nativeGetAttributeNamespace(int state, int idx)
|
private static final native int | nativeGetAttributeResource(int state, int idx)
|
private static final native int | nativeGetAttributeStringValue(int state, int idx)
|
private static final native int | nativeGetClassAttribute(int state)
|
private static final native int | nativeGetIdAttribute(int state)
|
private static final native int | nativeGetLineNumber(int state)
|
private static final native int | nativeGetName(int state)
|
private static final native int | nativeGetNamespace(int state)
|
private static final native int | nativeGetStringBlock(int obj)
|
private static final native int | nativeGetStyleAttribute(int state)
|
private static final native int | nativeGetText(int state)
|
private static final native int | nativeNext(int state)
|
public XmlResourceParser | newParser()
synchronized (this) {
if (mNative != 0) {
return new Parser(nativeCreateParseState(mNative), this);
}
return null;
}
|