Class UnicodeHelper
java.lang.Object
org.apache.camel.dataformat.bindy.UnicodeHelper
- All Implemented Interfaces:
Serializable
This class replicates the essential parts of the String class in order to aid proper work for Unicode chars in the
presense of UTF-16. So for all operations please see
String
with the same signature. This class is equally
immutable.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Defines how length if a string is defined, i.e how chars are counted. -
Constructor Summary
ModifierConstructorDescriptionprotected
For Serialization only!UnicodeHelper
(String input, UnicodeHelper.Method method) Create instance. -
Method Summary
-
Constructor Details
-
UnicodeHelper
Create instance.- Parameters:
input
- String, that is to be wrapped.method
- Method, that is used to determin "chars" of string.
-
UnicodeHelper
protected UnicodeHelper()For Serialization only!
-
-
Method Details
-
getMethod
- Returns:
- Returns the method used to determining the string length.
-
substring
- See Also:
-
substring
- See Also:
-
length
public int length()- See Also:
-
indexOf
- See Also:
-
indexOf
- See Also:
-
toString
-