Folks, when posting traces, code fragments or other formatted information, please surround such data in the text input area with the following
<pre>
... Formatted Text ...
</pre>
This will preserve the data format (tabs, columns etc etc) and make such things much more readable.
For example, here are two entries, the first without preformmating tags, the second with:
public byte[] getHeader() {
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
StringBuffer b = new StringBuffer(data);
b.setLength(getStrucLength());
byte dataBytes[] = b.toString().getBytes();
byte retByteArray[] = null;
try {
outStream.write("RFH ".getBytes()); // StrucId
outStream.write(int2bytearray(MQC.MQRFH_VERSION_2)); // Version
outStream.write(int2bytearray(getStrucLength())); // Struc length
outStream.write(int2bytearray(encoding)); // Encoding
public byte[] getHeader() {
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
StringBuffer b = new StringBuffer(data);
b.setLength(getStrucLength());
byte dataBytes[] = b.toString().getBytes();
byte retByteArray[] = null;
try {
outStream.write("RFH ".getBytes()); // StrucId
outStream.write(int2bytearray(MQC.MQRFH_VERSION_2)); // Version
outStream.write(int2bytearray(getStrucLength())); // Struc length
outStream.write(int2bytearray(encoding)); // Encoding
[ This Message was edited by: kolban on 2001-08-11 15:35 ]