microsoft-azure-storage/src/com/microsoft/azure/storage/ServicePropertiesHandler.java
public static ServiceProperties readServicePropertiesFromStream(final InputStream stream) throws SAXException,
            IOException, ParserConfigurationException {
        SAXParser saxParser = Utility.getSAXParser();
        ServicePropertiesHandler handler = new ServicePropertiesHandler();
        handler.props.setLogging(null);
        handler.props.setHourMetrics(null);
        handler.props.setMinuteMetrics(null);
        handler.props.setCors(null);
        saxParser.parse(stream, handler);

        return handler.props;
    }
public static ServiceProperties readServicePropertiesFromStream(final InputStream stream) throws SAXException,
            IOException, ParserConfigurationException {
        SAXParser saxParser = Utility.getSAXParser();
        ServicePropertiesHandler handler = new ServicePropertiesHandler();
        handler.props.setLogging(null);
        handler.props.setHourMetrics(null);
        handler.props.setMinuteMetrics(null);
        handler.props.setCors(null);
        saxParser.parse(stream, handler);

        return handler.props;
    }
Parses the {@link ServiceProperties} from the given XML stream.

@param stream
@throws IOException
@throws SAXException
@throws ParserConfigurationException