org.enhydra.xml
Class Utils

java.lang.Object
  extended by org.enhydra.xml.Utils

public class Utils
extends java.lang.Object

Utility methods for xml jdbc.

Version:
$Id: Utils.java,v 1.2 2004/07/22 12:49:38 zeljko Exp $
Author:
Zoran Milakovic

Constructor Summary
Utils()
           
 
Method Summary
static java.lang.String bytesToHexString(byte[] b)
          This method transform binary object to string object
static java.lang.String handleQuotedString(java.lang.String quotedString)
           
static byte[] hexStringToBytes(java.lang.String val)
          This method transform string object to binary object (array of bytes)
static java.lang.String replaceAll(java.lang.String input, java.lang.String forReplace, java.lang.String replaceWith)
          Replace all occurence of forReplace with replaceWith in input string.
static java.lang.String streamToHexString(java.io.InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

handleQuotedString

public static java.lang.String handleQuotedString(java.lang.String quotedString)

replaceAll

public static java.lang.String replaceAll(java.lang.String input,
                                          java.lang.String forReplace,
                                          java.lang.String replaceWith)
Replace all occurence of forReplace with replaceWith in input string.

Parameters:
input -
forReplace -
replaceWith -
Returns:
String with replaced values

bytesToHexString

public static java.lang.String bytesToHexString(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

hexStringToBytes

public static byte[] hexStringToBytes(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

streamToHexString

public static java.lang.String streamToHexString(java.io.InputStream is)
                                          throws java.io.IOException
Parameters:
is -
Returns:
String that represent InputStream is.
Throws:
java.io.IOException


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