Class Hex

java.lang.Object
  extended by Hex

public class Hex
extends java.lang.Object


Constructor Summary
Hex()
          Konstruktor tridy
 
Method Summary
static java.lang.String bytesToHex(byte[] data)
          Prevod pole bytu na hexa retezec
static int convert(char c)
          Funkce pro prevod znaku na celociselnou hodnotu
static int convert(char[] c)
          Funkce pro prevod pole znaku na jejich ciselnou reprezentaci
static byte[] convert(java.lang.String s)
          Funkce pro prevod retezce na pole bytu
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hex

public Hex()
Konstruktor tridy

Method Detail

bytesToHex

public static java.lang.String bytesToHex(byte[] data)
Prevod pole bytu na hexa retezec

Parameters:
data - Pole bytu pro prevod
Returns:
Retezec hexy znaku

convert

public static int convert(char c)
Funkce pro prevod znaku na celociselnou hodnotu

Parameters:
c - Prevadeny znak
Returns:
Celociselna reprezentace prevadeneho znaku

convert

public static int convert(char[] c)
Funkce pro prevod pole znaku na jejich ciselnou reprezentaci

Parameters:
c - Pole znaku pro prevod
Returns:
Celociselna reprezentace pole znaku

convert

public static byte[] convert(java.lang.String s)
Funkce pro prevod retezce na pole bytu

Parameters:
s - Retezec pro prevod
Returns:
Pole bytu prevedeneho retezce