microsoft-azure-storage/src/com/microsoft/azure/storage/ServiceStatsHandler.java
public static ServiceStats readServiceStatsFromStream(final InputStream inStream)
            throws ParserConfigurationException, SAXException, IOException {
        SAXParser saxParser = Utility.getSAXParser();
        ServiceStatsHandler handler = new ServiceStatsHandler();
        saxParser.parse(inStream, handler);

        return handler.stats;
    }
public static ServiceStats readServiceStatsFromStream(final InputStream inStream)
            throws ParserConfigurationException, SAXException, IOException {
        SAXParser saxParser = Utility.getSAXParser();
        ServiceStatsHandler handler = new ServiceStatsHandler();
        saxParser.parse(inStream, handler);

        return handler.stats;
    }
Constructs a {@link ServiceStats} object from an XML document received from the service.

@param inStream
The XMLStreamReader object.
@return
A {@link ServiceStats} object containing the properties in the XML document.

@throws SAXException
@throws ParserConfigurationException
@throws IOException