Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.servingxml.util
Class HexBin

    java.lang.Object
      com.servingxml.util.HexBin

    public final class HexBin

extends java.lang.Object

format validation This class encodes/decodes hexadecimal data

Version:
  $Id: HexBin.java 320108 2004-10-14 15:20:18Z mrglavas $

Field Summary
`static byte[]` | `hexNumberTable`
`static char[]` | `lookUpHexAlphabet`

Constructor Summary
`HexBin()`

Method Summary
`static byte[]` | `decode(java.lang.String encoded)` Decode hex string to a byte array
`static java.lang.String` | `encode(byte[] binaryData)` Encode a byte array to hex string
`static java.lang.String` | `encode(byte[] binaryData, int start, int lengthData)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### hexNumberTable

    public static final byte[] hexNumberTable

### lookUpHexAlphabet

    public static final char[] lookUpHexAlphabet

Constructor Detail

### HexBin

    public HexBin()

Method Detail

### encode

    public static java.lang.String encode(byte[] binaryData)

  Encode a byte array to hex string

  Parameters:
    `binaryData` - array of byte to encode
  Returns:
    return encoded string

### encode

    public static java.lang.String encode(byte[] binaryData,
                                          int start,
                                          int lengthData)

### decode

    public static byte[] decode(java.lang.String encoded)

  Decode hex string to a byte array

  Parameters:
    `encoded` - encoded string
  Returns:
    return array of byte to encode

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD