From 675a925c00fa66f7190b353adce5c05229775e4e Mon Sep 17 00:00:00 2001 From: giberta1 Date: Mon, 29 Jul 2002 09:56:18 +0000 Subject: [PATCH] Add trim_mode support whan TI swift batch mode off. --- MQSSave.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/MQSSave.java b/MQSSave.java index 875c283..a5763cd 100644 --- a/MQSSave.java +++ b/MQSSave.java @@ -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);