All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.windowsazure.samples.internal.blob.BlobRangeXmlAdapter Maven / Gradle / Ivy

Go to download

jpa4azure, implements a subset of the JPA specification using Azure Storage for pesisting beans. see http://jpa4azure.codeplex.com for more information.

There is a newer version: 0.7
Show newest version
package com.windowsazure.samples.internal.blob;

import com.windowsazure.samples.blob.BlobRange;
import com.windowsazure.samples.internal.web.XmlHttpResult;
import com.windowsazure.samples.internal.xml.AzureDOMAdapter;


final class BlobRangeDOMAdapter extends AzureDOMAdapter {

	protected BlobRangeDOMAdapter(XmlHttpResult result) {
		super(result);
	}
	
	@Override
	public BlobRange build()
		throws Exception {
		
		String startText = getInnerText("Start");
		String endText = getInnerText("End");
		
		int start = Integer.parseInt(startText);
		int end = Integer.parseInt(endText);
		
		return BlobRange.fromStartAndEnd(start, end);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy