public static ShareStats readShareStatsFromStream(final InputStream inStream)
            throws ParserConfigurationException, SAXException, IOException {
        SAXParser saxParser = Utility.getSAXParser();
        ShareStatsHandler handler = new ShareStatsHandler();
        saxParser.parse(inStream, handler);

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

        return handler.stats;
    }
public static ShareStats readShareStatsFromStream ( final InputStream inStream ) throws ParserConfigurationException , SAXException , IOException { SAXParser saxParser = Utility . getSAXParser ( ) ; ShareStatsHandler handler = new ShareStatsHandler ( ) ; saxParser . parse ( inStream , handler ) ; return handler . stats ; }
Constructs a {@link ShareStats} object from an XML document received from the service.

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

@throws SAXException
@throws ParserConfigurationException
@throws IOException
Constructs a { @link ShareStats } object from an XML document received from the service .