Add trim_mode support whan TI swift batch mode off.

This commit is contained in:
giberta1 2002-07-29 09:56:18 +00:00
parent 33b67fe311
commit 675a925c00

View File

@ -1,7 +1,7 @@
// $RCSfile: MQSSave.java,v $
// $Revision: 1.8 $
// $Revision: 1.9 $
// $Name: $
// $Date: 2002/05/21 15:44:45 $
// $Date: 2002/07/29 09:56:18 $
// $Author: giberta1 $
/*
@ -45,9 +45,9 @@ public class MQSSave
private boolean TI_Swift_Batch_Mode = false;
private boolean Trim_Mode = false;
private int Total_Nb = 0, Moved_Nb = 0, Skiped_Nb = 0, Scaned_Nb = 0, Flushed_Nb = 0;
private String MQSSave_Revision = "$Revision: 1.8 $";
private String MQSSave_Revision = "$Revision: 1.9 $";
private String MQSSave_Tag = "$Name: $";
private String MQSSave_Date = "$Date: 2002/05/21 15:44:45 $";
private String MQSSave_Date = "$Date: 2002/07/29 09:56:18 $";
private String MQSSave_Author = "$Author: giberta1 $";
@ -517,6 +517,12 @@ public class MQSSave
buffer_byte = new byte[ input_msg.getMessageLength()];
input_msg.readFully( buffer_byte);
if( Trim_Mode)
{
String buffer_string = new String( buffer_byte).trim();
buffer_byte = buffer_string.getBytes();
}
Output_File.write( buffer_byte, 0, buffer_byte.length);
MQSDelete_Msg( input_msg);