org.apache.axis.types
Class HexBinary
Object
org.apache.axis.types.HexBinary
- java.io.Serializable
public class HexBinary
extends Object
implements java.io.Serializable
Custom class for supporting primitive XSD data type hexBinary.
static int | convert2Int(byte[] hex) - Convert 4 hex digits to an int, and return the number of converted
bytes.
|
static byte[] | decode(String digits) - Convert a String of hexadecimal digits into the corresponding
byte array by encoding each two hexadecimal digits as a byte.
|
static String | encode(bytes[] ) - Convert a byte array into a printable format containing a
String of hexadecimal digit characters (two per byte).
|
boolean | equals(Object object)
|
byte[] | getBytes()
|
int | hashCode()
|
String | toString()
|
DEC
public static final int[] DEC
ERROR_BAD_CHARACTER_IN_HEX_STRING
public static final String ERROR_BAD_CHARACTER_IN_HEX_STRING
ERROR_ODD_NUMBER_OF_DIGITS
public static final String ERROR_ODD_NUMBER_OF_DIGITS
HexBinary
public HexBinary()
HexBinary
public HexBinary(String string)
HexBinary
public HexBinary(byte[] bytes)
convert2Int
public static int convert2Int(byte[] hex)
Convert 4 hex digits to an int, and return the number of converted
bytes.
hex
- Byte array containing exactly four hexadecimal digits
decode
public static byte[] decode(String digits)
Convert a String of hexadecimal digits into the corresponding
byte array by encoding each two hexadecimal digits as a byte.
digits
- Hexadecimal digits representation
encode
public static String encode(bytes[] )
Convert a byte array into a printable format containing a
String of hexadecimal digit characters (two per byte).
equals
public boolean equals(Object object)
getBytes
public byte[] getBytes()
hashCode
public int hashCode()
toString
public String toString()
Copyright © 2005 Apache Web Services Project. All Rights Reserved.