This commit is contained in:
jrandom
2004-11-09 05:54:39 +00:00
committed by zzz
parent 16715aa309
commit 30074be5a5

View File

@ -685,10 +685,13 @@ public class SAMv1Handler extends SAMHandler implements SAMRawReceiver, SAMDatag
ByteArrayOutputStream msg = new ByteArrayOutputStream(); ByteArrayOutputStream msg = new ByteArrayOutputStream();
msg.write(("RAW RECEIVED SIZE=" + data.length String msgText = "RAW RECEIVED SIZE=" + data.length + "\n";
+ "\n").getBytes("ISO-8859-1")); msg.write(msgText.getBytes("ISO-8859-1"));
msg.write(data); msg.write(data);
if (_log.shouldLog(Log.DEBUG))
_log.debug("sending to client: " + msgText);
writeBytes(msg.toByteArray()); writeBytes(msg.toByteArray());
} }
@ -716,9 +719,12 @@ public class SAMv1Handler extends SAMHandler implements SAMRawReceiver, SAMDatag
ByteArrayOutputStream msg = new ByteArrayOutputStream(); ByteArrayOutputStream msg = new ByteArrayOutputStream();
msg.write(("DATAGRAM RECEIVED DESTINATION=" + sender.toBase64() String msgText = "DATAGRAM RECEIVED DESTINATION=" + sender.toBase64()
+ " SIZE=" + data.length + " SIZE=" + data.length + "\n";
+ "\n").getBytes("ISO-8859-1")); msg.write(msgText.getBytes("ISO-8859-1"));
if (_log.shouldLog(Log.DEBUG))
_log.debug("sending to client: " + msgText);
msg.write(data); msg.write(data);
writeBytes(msg.toByteArray()); writeBytes(msg.toByteArray());
@ -761,8 +767,10 @@ public class SAMv1Handler extends SAMHandler implements SAMRawReceiver, SAMDatag
ByteArrayOutputStream msg = new ByteArrayOutputStream(); ByteArrayOutputStream msg = new ByteArrayOutputStream();
msg.write(("STREAM RECEIVED ID=" + id String msgText = "STREAM RECEIVED ID=" + id +" SIZE=" + len + "\n";
+" SIZE=" + len + "\n").getBytes("ISO-8859-1")); if (_log.shouldLog(Log.DEBUG))
_log.debug("sending to client: " + msgText);
msg.write(msgText.getBytes("ISO-8859-1"));
msg.write(data, 0, len); msg.write(data, 0, len);
writeBytes(msg.toByteArray()); writeBytes(msg.toByteArray());