Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1)

E12063-03


oracle.dss.util.xdo.common.util
Class Hex

java.lang.Object
  extended by oracle.dss.util.xdo.common.util.Hex


public class Hex
extends java.lang.Object

Byte array and hex string conversion utility


Field Summary
static java.lang.String RCS_ID
           

 

Constructor Summary
Hex()
           

 

Method Summary
static java.lang.String dump(byte[] b)
          Dump byte array as a string
static java.lang.String dump(byte[] b, int start, int len)
          Dump byte array as a string
static boolean equals(byte[] b1, byte[] b2)
          Returns true if specified two byte array is identical.
static java.lang.String hex(int val)
           
static java.lang.String hex(int c, int len)
          Returns hex (XXXX) string for c.
static java.lang.String hex(long val)
           
static java.lang.String hex(long c, int len)
          Returns hex (XXXX) string for c.
static byte[] parse(java.lang.String str)
          Parse string representation of hex values and returns the byte array.

 

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

 

Field Detail

RCS_ID

public static final java.lang.String RCS_ID
See Also:
Constant Field Values

Constructor Detail

Hex

public Hex()

Method Detail

hex

public static java.lang.String hex(int c,
                                   int len)
Returns hex (XXXX) string for c. len is a number of X. hex(5,2) ==> '05' hex(5,4) ==> '0005'

hex

public static java.lang.String hex(long c,
                                   int len)
Returns hex (XXXX) string for c. len is a number of X. hex(5,2) ==> '05' hex(5,4) ==> '0005'

hex

public static java.lang.String hex(long val)

hex

public static java.lang.String hex(int val)

dump

public static java.lang.String dump(byte[] b)
Dump byte array as a string
Parameters:
b -
Returns:

dump

public static java.lang.String dump(byte[] b,
                                    int start,
                                    int len)
Dump byte array as a string
Parameters:
b -
start -
len -
Returns:

parse

public static byte[] parse(java.lang.String str)
Parse string representation of hex values and returns the byte array. "01A235FF" -> { 01, A2, 35, FF }

equals

public static boolean equals(byte[] b1,
                             byte[] b2)
Returns true if specified two byte array is identical.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1)

E12063-03


Copyright © 1997, 2009, Oracle. All rights reserved.