com.windowsazure.samples.internal.blob.BlobRangeXmlAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jpa4azure Show documentation
Show all versions of jpa4azure Show documentation
jpa4azure, implements a subset of the JPA specification using Azure Storage for pesisting beans. see http://jpa4azure.codeplex.com for more information.
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