public static ListResponse < ListFileItem > getFileAndDirectoryList ( final InputStream stream , final CloudFileDirectory directory ) throws ParserConfigurationException , SAXException , IOException { SAXParser saxParser = Utility . getSAXParser ( ) ; FileListHandler handler = new FileListHandler ( directory ) ; saxParser . parse ( stream , handler ) ; return handler . response ; }
Parse and return the response .