litesoft
Diff Revisions
801
vs
802
for /trunk/Java/InterModuleComm/InterModuleComm/src/InterModuleComm/ToMessage.java
|
@@ -95,7 +95,7 @@ |
95 |
95 |
|
{ |
96 |
96 |
|
rv += " " + ONELINE_PREFIX + mMsgLines[0]; |
97 |
97 |
|
} |
98 |
|
- |
else if ( !Utils.isNullOrEmpty( mTerminatingMsgLine ) ) |
|
98 |
+ |
else if ( !Strings.isNullOrEmpty( mTerminatingMsgLine ) ) |
99 |
99 |
|
{ |
100 |
100 |
|
rv += " " + TERMINATOR_PREFIX + mTerminatingMsgLine; |
101 |
101 |
|
} |
|
@@ -140,17 +140,17 @@ |
140 |
140 |
|
{ |
141 |
141 |
|
//String zRest = Utils.trimLeadingSpaces( pHeader.substring( PREFIX.length() )); |
142 |
142 |
|
RestOfMsg vRestOfMsg = |
143 |
|
- |
new RestOfMsg( Utils.trimLeadingSpaces( pHeader.substring( PREFIX.length() ) ) ); |
|
143 |
+ |
new RestOfMsg( Strings.trimLeadingSpaces( pHeader.substring( PREFIX.length() ) ) ); |
144 |
144 |
|
String zTo = thru( ' ', vRestOfMsg ); // ref is reference. Create zRest object |
145 |
145 |
|
if ( vRestOfMsg.getRest().startsWith( FROM_PREFIX ) ) |
146 |
146 |
|
{ |
147 |
|
- |
vRestOfMsg.setRest( Utils.trimLeadingSpaces( |
|
147 |
+ |
vRestOfMsg.setRest( Strings.trimLeadingSpaces( |
148 |
148 |
|
vRestOfMsg.getRest().substring( FROM_PREFIX.length() ) ) ); |
149 |
149 |
|
String zFrom = thru( ' ', vRestOfMsg ); |
150 |
150 |
|
ToMsgForm zForm = convertToMsgForm( thru( Constants.NV_SEP, vRestOfMsg ) ); |
151 |
151 |
|
if ( zForm != null ) |
152 |
152 |
|
{ |
153 |
|
- |
vRestOfMsg.setRest( Utils.trimLeadingSpaces( vRestOfMsg.getRest().substring( 1 ) ) ); |
|
153 |
+ |
vRestOfMsg.setRest( Strings.trimLeadingSpaces( vRestOfMsg.getRest().substring( 1 ) ) ); |
154 |
154 |
|
String zId = thru( ' ', vRestOfMsg ); |
155 |
155 |
|
String zError = null; |
156 |
156 |
|
String zTerminator = ""; |
|
@@ -240,7 +240,7 @@ |
240 |
240 |
|
else |
241 |
241 |
|
{ |
242 |
242 |
|
rv = pLine.getRest().substring( 0, zAt ); |
243 |
|
- |
pLine.setRest( Utils.trimLeadingSpaces( pLine.getRest().substring( zAt ) ) ); |
|
243 |
+ |
pLine.setRest( Strings.trimLeadingSpaces( pLine.getRest().substring( zAt ) ) ); |
244 |
244 |
|
} |
245 |
245 |
|
return rv; |
246 |
246 |
|
} |