MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.util
Class PlatformDependentUtils

java.lang.Object
  extended by ch.ethz.mxquery.util.PlatformDependentUtils

public class PlatformDependentUtils
extends java.lang.Object


Constructor Summary
PlatformDependentUtils()
           
 
Method Summary
static char[] codepointToChars(int codePoint)
          Translate from codepoint to code units/characters Wrapper to discern between Java 5 methods (Unicode 4) and Java 1.4.2/CLDC
static java.lang.StringBuffer expandCharRef(java.lang.String val, boolean attribute)
          Expand characters that cannot be part of XML into character references Wrapper to discern between Java 5 methods (Unicode 4) and Java 1.4.2/CLDC
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformDependentUtils

public PlatformDependentUtils()
Method Detail

expandCharRef

public static java.lang.StringBuffer expandCharRef(java.lang.String val,
                                                   boolean attribute)
Expand characters that cannot be part of XML into character references Wrapper to discern between Java 5 methods (Unicode 4) and Java 1.4.2/CLDC

Parameters:
val - String to expand
attribute - Is val part of attribute, if yes also expand tab and linebreaks
Returns:
val with character references expanded

codepointToChars

public static char[] codepointToChars(int codePoint)
Translate from codepoint to code units/characters Wrapper to discern between Java 5 methods (Unicode 4) and Java 1.4.2/CLDC

Parameters:
codePoint - codepoint to bring into
Returns:
char [] containing code units

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich