I am using outputstreamwriter to write the output of resultset of some report to csv file.But the csv file has only 100k lines which should be some 600k lines.Was the data truncated while writing to csv after 100k lines?.I am not able to figure out what could be the issue.Googling didint provide me any solution.
Does Using printwriter to get all the 600k lines makes sense.
reportData = reportSession.generateAdvancedReport( id, format, displayType, request.getRequestedSessionId(), 0, 0, false,
report.getIsDashboardComponent() && report.getDisplayPregeneratedData(), testContextObjectId, testContextObjectName, testContextObjectProp1 );
if( reportData != null )
{
for( int i = 0; i < reportData.size(); i ++)
{
if( i != 0 )
writer.write( "\n" );
for( int j = 0; j < reportData.get( i ).size(); j++ )
{
writer.write( "\"" );
/*
* Mantis ID 4468
* null check added as it was throwing illegal state exception
*/
if(reportData.get( i ).get( j ) != null)
writer.write( reportData.get( i ).get( j ) );
else
writer.write( "" );
writer.write( "\"" );
if( j != reportData.get( i ).size() - 1 )
writer.write( "," );
}
}
}