Data Request Broker
2-3-release

fr.gael.drb.impl.xml
Class XmlString

java.lang.Object
  extended by fr.gael.drb.impl.xml.XmlString

public class XmlString
extends Object

Process character conversion on string. Convert character reference in a xml style into unicode character and vice versa.


Constructor Summary
XmlString()
           
 
Method Summary
static String decode(String input)
          Decode character references or predefined entity reference found inside the input string into unicode character
static String encode(String str)
          Format an XML string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlString

public XmlString()
Method Detail

decode

public static String decode(String input)
Decode character references or predefined entity reference found inside the input string into unicode character

Parameters:
input - The input string to process
Returns:
The string with only unicode character inside

encode

public static String encode(String str)
Format an XML string. All specific characters will be despecialized by adding the specified notation.

Parameters:
str - the string to format
Returns:
a string suitable for XML queries.

Data Request Broker - DRB API®
2-3-release

Copyright© 2001-2009 GAEL Consultant. All rights reserved. Use is subject to license terms .