Package com.day.text
Class ISO9075
java.lang.Object
com.day.text.ISO9075
Implements the encode and decode routines as specified for XML name to SQL
identifier conversion in ISO 9075-14:2003.
If a character
If a character
c is not valid at a certain position in an XML 1.0
NCName it is encoded in the form: '_x' + hexValueOf(c) + '_'
-
Method Summary
-
Method Details
-
encode
Encodesnameas specified in ISO 9075.- Parameters:
name- theStringto encode.- Returns:
- the encoded
Stringornameif it does not need encoding.
-
encodePath
Encodespathas specified in ISO 9075. Please note that the character '[' is not encoded but rather interpreted as the start of an index in a path segment.- Parameters:
path- theStringto encode.- Returns:
- the encoded
String.
-
decode
Decodes thename.- Parameters:
name- theStringto decode.- Returns:
- the decoded
String.
-