Hi naman, The report result is returned as an InputStream. It doesn't have the method that reads a stream line by line. You need to implement that part to detect a line break.
Best, - Takeshi, AdWords API Team On Wednesday, December 4, 2013 11:34:52 PM UTC+9, naman jindal wrote: > > Hi Takeshi, > > Thanks for your reply. I have made a function to sort the report. Now I > want to know if there is a way to read the report directly without saving > it to file? Forget the sorting part. > I just want to read the report without saving it to file. I know one way > of using the response object as: > > ReportDownloadResponse response = new > ReportDownloader(session).downloadReport(query, DownloadFormat.CSV); > > String str = ""; > int i,n = 0; > char c; > while((i=response.getInputStream().read())!=-1) > { > > //Do something > > } > > But this reads the report character by character. I want to know if we can > read the report line by line or anything that is more efficient. > > Thanks for your time. > > Regards, > Naman Jindal > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://googleadsdeveloper.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.