Code example for XmlResourceParser

Methods: getAttributeValue

0
		} 
	} 
 
	private static TMXProperty readTMXProperty(XmlResourceParser xrp) {
		final TMXProperty property = new TMXProperty();
		property.name = xrp.getAttributeValue(null, "name");
		property.value = xrp.getAttributeValue(null, "value");
		return property;
	} 
 
	private static void copyStreamToBuffer(InflaterInputStream zi, byte[] buffer, int len) throws IOException {
		int offset = 0;
		int bytesToRead = len;
		while (bytesToRead > 0) {
			int b = zi.read(buffer, offset, bytesToRead);
			if (b <= 0) throw new IOException("Failed to read stream!");
			bytesToRead -= b;
			offset += b;
		} 
	}