Methods Summary |
---|
public static java.lang.String | dump(byte[] buffer)
return dump(buffer, 0, buffer.length);
|
public static java.lang.String | dump(byte[] buffer, int offset, int length)
final StringBuffer stringBuffer = new StringBuffer();
for(int i=0; i<length; i++) {
final int value = buffer[offset + i] & 0xFF;
final String strValue = Integer.toHexString(value).toUpperCase();
final String str = "00".substring(strValue.length()) + strValue;
stringBuffer.append(str);
stringBuffer.append('(");
stringBuffer.append((char) value);
stringBuffer.append(')");
stringBuffer.append(' ");
}
return stringBuffer.toString();
|
public static java.lang.String | dump(java.nio.ByteBuffer[] bb)
final StringBuffer stringBuffer = new StringBuffer();
for(int i=0; i<bb.length; i++) {
stringBuffer.append(dump(bb[i]));
}
return stringBuffer.toString();
|
public static java.lang.String | dump(java.nio.ByteBuffer buffer)
return dump(buffer, buffer.position(), buffer.limit() - buffer.position());
|
public static java.lang.String | dump(java.nio.ByteBuffer buffer, int offset, int length)
final byte[] array = new byte[length];
final int position = buffer.position();
buffer.position(offset);
buffer.get(array);
buffer.position(position);
return dump(array);
|
public static java.lang.String | dumpBytes(java.nio.ByteBuffer[] bb)
final StringBuffer stringBuffer = new StringBuffer();
for(int i=0; i<bb.length; i++) {
stringBuffer.append(dumpBytes(bb[i]));
}
return stringBuffer.toString();
|
public static java.lang.String | dumpBytes(byte[] buffer)
return dumpBytes(buffer, 0, buffer.length);
|
public static java.lang.String | dumpBytes(byte[] buffer, int offset, int length)
final StringBuffer stringBuffer = new StringBuffer();
for(int i=0; i<length; i++) {
final int value = buffer[offset + i] & 0xFF;
stringBuffer.append((char) value);
}
return stringBuffer.toString();
|
public static java.lang.String | dumpBytes(java.nio.ByteBuffer buffer)
return dumpBytes(buffer, buffer.position(), buffer.limit() - buffer.position());
|
public static java.lang.String | dumpBytes(java.nio.ByteBuffer buffer, int offset, int length)
final byte[] array = new byte[length];
final int position = buffer.position();
buffer.position(offset);
buffer.get(array);
buffer.position(position);
return dumpBytes(array);
|
public static java.lang.String | dumpOctets(byte[] buffer)
return dumpOctets(buffer, 0, buffer.length);
|
public static java.lang.String | dumpOctets(byte[] buffer, int offset, int length)
final StringBuffer stringBuffer = new StringBuffer();
for(int i=0; i<length; i++) {
final int value = buffer[offset + i] & 0xFF;
final String strValue = Integer.toHexString(value).toUpperCase();
final String str = "00".substring(strValue.length()) + strValue;
stringBuffer.append(str);
stringBuffer.append(' ");
}
return stringBuffer.toString();
|
public static java.lang.String | dumpOctets(java.nio.ByteBuffer[] bb)
final StringBuffer stringBuffer = new StringBuffer();
for(int i=0; i<bb.length; i++) {
stringBuffer.append(dumpOctets(bb[i]));
}
return stringBuffer.toString();
|
public static java.lang.String | dumpOctets(java.nio.ByteBuffer buffer)
return dumpOctets(buffer, buffer.position(), buffer.limit() - buffer.position());
|
public static java.lang.String | dumpOctets(java.nio.ByteBuffer buffer, int offset, int length)
final byte[] array = new byte[length];
final int position = buffer.position();
buffer.position(offset);
buffer.get(array);
buffer.position(position);
return dumpBytes(array);
|