public static ArrayList < CloudQueueMessage > readMessages ( final InputStream stream , final boolean shouldEncodeMessage ) throws SAXException , IOException , ParserConfigurationException { SAXParser saxParser = Utility . getSAXParser ( ) ; QueueMessageHandler handler = new QueueMessageHandler ( shouldEncodeMessage ) ; saxParser . parse ( stream , handler ) ; return handler . messages ; }
Populates CloudQueueMessage objects from the XMLStreamReader ; the reader must be at the Start element of QueuesElement .