com.google.checkout
Class EncodeHelper

java.lang.Object
  extended by com.google.checkout.EncodeHelper

public final class EncodeHelper
extends java.lang.Object

Version:
1.0 - ksim - March 6th, 2007 - Initial Version
Author:
ksim

Constructor Summary
EncodeHelper()
           
 
Method Summary
static java.lang.String escapeXmlChars(java.lang.String str)
           Escapes XML characters < > and &.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncodeHelper

public EncodeHelper()
Method Detail

escapeXmlChars

public static java.lang.String escapeXmlChars(java.lang.String str)
Escapes XML characters < > and &. String that could contain < > and & characters. A new string where & has been replaced by &#x26;, < has been replaced by &#x3c; and > has been replaced by &#x3e;. These replacements are mandated here in the Dev Guide: http://code.google.com/apis/checkout/developer/index.html#api_request_guidelines