org.brains2b.util
Class XmlHelper

java.lang.Object
  extended byorg.brains2b.util.XmlHelper

public class XmlHelper
extends java.lang.Object

XML Helper class provides some currently used functions for dealing with XML files.

Version:
0.10 [26-11-2004]
Author:
dennis@brains2b.nl

Method Summary
static java.lang.String decode(java.lang.String s)
          decode xml-encoded String to a normal String Decode will take both the symbol and hex coded variant of the encoded String
static java.lang.String encode(java.lang.String s)
          encode a given String to an xml-encoded String Encode will code only the symboled (apos,quote,lt,gt,amp) characters
static boolean isWhitespace(char c)
          checks if a given character is a whitespace as defined by XML1.0 specifications
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decode

public static final java.lang.String decode(java.lang.String s)
decode xml-encoded String to a normal String

Decode will take both the symbol and hex coded variant of the encoded String

Parameters:
s - String, xml-encoded String
Returns:
String, a normal String

encode

public static final java.lang.String encode(java.lang.String s)
encode a given String to an xml-encoded String

Encode will code only the symboled (apos,quote,lt,gt,amp) characters

Parameters:
s - String, a normal jva String
Returns:
String, a xml-encode String

isWhitespace

public static final boolean isWhitespace(char c)
checks if a given character is a whitespace as defined by XML1.0 specifications

Parameters:
c -
Returns:
boolean
Since:
Saxo 0.20