Пример #1
0
 internal Parser(XmlBlock _enclosing, android.content.res.XmlBlock.Parser.NativeXmlParser
                 parseState, android.content.res.XmlBlock block)
 {
     this._enclosing  = _enclosing;
     mStarted         = false;
     mDecNextDepth    = false;
     mDepth           = 0;
     mEventType       = org.xmlpull.v1.XmlPullParserClass.START_DOCUMENT;
     this.mParseState = parseState;
     this.mBlock      = block;
     block.mOpenCount++;
 }
Пример #2
0
		internal android.content.res.XmlBlock openXmlBlockAsset(int cookie, string fileName
			)
		{
			lock (this)
			{
				if (!mOpen)
				{
					throw new java.lang.RuntimeException("Assetmanager has been closed");
				}
				android.content.res.XmlBlock.NativeXmlBlock xmlBlock = openXmlAssetNative(cookie, 
					fileName);
				if (xmlBlock != null)
				{
					android.content.res.XmlBlock res = new android.content.res.XmlBlock(this, xmlBlock
						);
					incRefsLocked(res.GetHashCode());
					return res;
				}
			}
			throw new java.io.FileNotFoundException("Asset XML file: " + fileName);
		}