fr.dyade.aaa.util
Class Ubyte

java.lang.Object
  extended byfr.dyade.aaa.util.Ubyte

public class Ubyte
extends java.lang.Object

Provides a kind of unsigned byte functionality.


Constructor Summary
Ubyte()
           
 
Method Summary
static byte signedValue(int b)
          Gives the Byte value of an unsigned byte value.
static java.lang.String toHexString(byte b)
          Gives the hexa representation of unsigned value of the byte.
static java.lang.String toHexString(byte[] buffer, int start, int stop)
          Gives the hexa representation of an array of bytes.
static java.lang.String toHexString(byte[] buffer, int start, int stop, int bytesInBlock, java.lang.String blockHeader, int blocksInLine, java.lang.String lineHeader, int current)
           
static int unsignedValue(byte b)
          Gives the unsigned value of a byte.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ubyte

public Ubyte()
Method Detail

unsignedValue

public 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 java.lang.String toHexString(byte b)
Gives the hexa representation of unsigned value of the byte.


toHexString

public static java.lang.String toHexString(byte[] buffer,
                                           int start,
                                           int stop,
                                           int bytesInBlock,
                                           java.lang.String blockHeader,
                                           int blocksInLine,
                                           java.lang.String lineHeader,
                                           int current)

toHexString

public static java.lang.String toHexString(byte[] buffer,
                                           int start,
                                           int stop)
Gives the hexa representation of an array of bytes.

Parameters:
buffer - array of bytes to print
start - index of first byte to print in buffer
stop - index of first byte not to print in buffer


Copyright ? 2004 Scalagent - All rights reserved