org.webdocwf.util.loader
Class ToAndFromHex

java.lang.Object
  extended by org.webdocwf.util.loader.ToAndFromHex

public class ToAndFromHex
extends java.lang.Object

ToAndFromHex class is used for transformation binary objects to string object, and string object to binary object

Version:
1.0
Author:
Radoslav Dutina

Constructor Summary
ToAndFromHex()
          Empty constructor of ToAndFromHex class
 
Method Summary
static byte[] getByteArrayFromString(java.lang.String val)
          This method transform string object to binary object (array of bytes)
static java.lang.String getStringFromBlob(byte[] b)
          This method transform binary object to string object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToAndFromHex

public ToAndFromHex()
Empty constructor of ToAndFromHex class

Method Detail

getStringFromBlob

public static java.lang.String getStringFromBlob(byte[] b)
This method transform binary object to string object

Parameters:
b - is array of bytes which represents binary object
Returns:
string representation of binary object

getByteArrayFromString

public static byte[] getByteArrayFromString(java.lang.String val)
This method transform string object to binary object (array of bytes)

Parameters:
val - is string representation of binary object
Returns:
binary object


Copyright © 2002-2007 Together - the Workgroup. All Rights Reserved.