wlan-decoder-java 1.0

- Main Page
- Packages
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Functions Variables Pages
Static Public Member Functions | List of all members
fr.bmartel.protocol.wlan.utils.ByteUtils Class Reference

## Static Public Member Functions
static String | byteArrayToStringMessage (String message, byte[] array, char separator)
static String | convertFromIntToHexa (byte data)
static int | convertByteArrayToInt (byte[] array)

## Detailed Description

This class aims at realizing all kind of conversions involving Hexa/int/bytes

Author
  Bertrand Martel

## Member Function Documentation

static String fr.bmartel.protocol.wlan.utils.ByteUtils.byteArrayToStringMessage | ( | String | message,
|  | byte[] | array,
|  | char | separator
| ) |  |
| static

Build a byte array to string with a prefix message

Parameters

  message | message to print before byte array
  array | byte array to print
  separator | separator between byte values

Returns
  string message

static int fr.bmartel.protocol.wlan.utils.ByteUtils.convertByteArrayToInt | ( | byte[] | array) |  |
| static

Convert a byte array to integer

Parameters

  array | byte array

Returns
  integer value

static String fr.bmartel.protocol.wlan.utils.ByteUtils.convertFromIntToHexa | ( | byte | data) |  |
| static

Convert from int data into String hexadecimal (ex 255 => "0xFF")

Parameters

  data | data to convert into hexa

Returns

          data converted into hexa

The documentation for this class was generated from the following file:

- /home/abathur/Bureau/wlandecoder/wlandecoder/src/fr/bmartel/protocol/wlan/utils/ByteUtils.java