fr.dyade.aaa.util
Class Ubyte
public class Ubyte
extends java.lang.Object
Provides a kind of unsigned byte functionality.
static byte | signedValue(int b) - Gives the Byte value of an unsigned byte value.
|
static String | toHexString(byte b) - Gives the hexa representation of unsigned value of the byte.
|
static String | toHexString(byte[] buffer, int start, int stop) - Gives the hexa representation of an array of bytes.
|
static String | toHexString(byte[] buffer, int start, int stop, int bytesInBlock, String blockHeader, int blocksInLine, String lineHeader, int current)
|
static int | unsignedValue(byte b) - Gives the unsigned value of a byte.
|
signedValue
public static byte signedValue(int b)
Gives the Byte value of an unsigned byte value.
toHexString
public static String toHexString(byte b)
Gives the hexa representation of unsigned value of the byte.
toHexString
public static String toHexString(byte[] buffer,
int start,
int stop)
Gives the hexa representation of an array of bytes.
buffer
- array of bytes to printstart
- index of first byte to print in bufferstop
- index of first byte not to print in buffer
toHexString
public static String toHexString(byte[] buffer,
int start,
int stop,
int bytesInBlock,
String blockHeader,
int blocksInLine,
String lineHeader,
int current)
unsignedValue
public static int unsignedValue(byte b)
Gives the unsigned value of a byte.
Copyright B) 2004 Scalagent - All rights reserved