com.atlassian.crowd.plugin.rest.exception.mapper
Class ExceptionMapperUtil

java.lang.Object
  extended by com.atlassian.crowd.plugin.rest.exception.mapper.ExceptionMapperUtil

public final class ExceptionMapperUtil
extends Object


Method Summary
static String stripNonValidXMLCharacters(String in)
          Strips out characters which cannot be legally represented in XML document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

stripNonValidXMLCharacters

public static String stripNonValidXMLCharacters(String in)
Strips out characters which cannot be legally represented in XML document. Following is excerpted from Wikipedia:- Unicode code points in the following ranges are valid in XML 1.0 documents:[9] U+0009, U+000A, U+000D: these are the only C0 controls accepted in XML 1.0; U+0020–U+D7FF, U+E000–U+FFFD: this excludes some (not all) non-characters in the BMP (all surrogates, U+FFFE and U+FFFF are forbidden); U+10000–U+10FFFF: this includes all code points in supplementary planes, including non-characters.

Parameters:
in - input string.
Returns:
cleansed string.


Copyright © 2013 Atlassian. All Rights Reserved.