@@ -376,24 +376,27 @@ void CompressedInputStream::readHeader()
376376
377377 if (_listeners.size () > 0 ) {
378378 stringstream ss;
379- ss << " Bitstream version: " << bsVersion << endl;
379+ string inputName = _ctx.getString (" inputName" , " " );
380+ ss << inputName << " ," ;
381+ ss << bsVersion << " ," ;
380382 string ckSize = " NONE" ;
381383
382384 if (_hasher32 != nullptr )
383- ckSize = " 32 bits " ;
385+ ckSize = " 32" ;
384386 else if (_hasher64 != nullptr )
385- ckSize = " 64 bits " ;
387+ ckSize = " 64" ;
386388
387- ss << " Block checksum: " << ckSize<< endl ;
388- ss << " Block size: " << _blockSize << " bytes " << endl ;
389+ ss << ckSize << " , " ;
390+ ss << _blockSize << " , " ;
389391 string w1 = EntropyDecoderFactory::getName (_entropyType);
390- ss << " Using " << ((w1 == " NONE" ) ? " no " : w1) << " entropy codec (stage 1) " << endl ;
392+ ss << ((w1 == " NONE" ) ? " " : w1) << " , " ;
391393 string w2 = TransformFactory<byte>::getName (_transformType);
392- ss << " Using " << ((w2 == " NONE" ) ? " no" : w2) << " transform (stage 2)" << endl;
394+ ss << ((w2 == " NONE" ) ? " " : w2) << " ," ;
395+ long fileSize = _ctx.getLong (" fileSize" , 0 );
396+ ss << fileSize << " ," ;
393397
394398 if (szMask != 0 ) {
395- ss << " Original size: " << _outputSize;
396- ss << (_outputSize < 2 ? " byte" : " bytes" ) << endl;
399+ ss << _outputSize << " ," ;
397400 }
398401
399402 // Protect against future concurrent modification of the list of block listeners
0 commit comments