|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vgrs.xcode.cmdline.CmdLine
com.vgrs.xcode.cmdline.common.UnicodeCmdLine
public class UnicodeCmdLine
This class converts between Unicode data and Utf-16 using the surrogate arithmetic specified in the UTF-16 RFC.
| Field Summary |
|---|
| Fields inherited from class com.vgrs.xcode.cmdline.CmdLine |
|---|
SWITCH_FILE |
| Constructor Summary | |
|---|---|
UnicodeCmdLine(java.lang.String[] args)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getUsageOptions()
Return only the options for this command. |
static void |
main(java.lang.String[] args)
|
static void |
testDecode(java.io.File input)
Decode Unicode input as Utf-16. |
static void |
testDecode(java.lang.String input)
Decode a sequence of Unicode code points to a sequence of characters. |
static void |
testEncode(java.io.File input)
Encode Utf-16 input as Unicode. |
static void |
testEncode(java.lang.String input)
Encode a string to an array of unicode |
| Methods inherited from class com.vgrs.xcode.cmdline.CmdLine |
|---|
getCommandName, getOptions, setCommandName, setOptions, showUsage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnicodeCmdLine(java.lang.String[] args)
args - the command line arguments.| Method Detail |
|---|
public java.lang.String getUsageOptions()
getUsageOptions in class CmdLinepublic static void main(java.lang.String[] args)
args - the command line arguments.public static void testEncode(java.io.File input)
input - the file containing Utf-16 input.public static void testDecode(java.io.File input)
input - the file containing Unicode input.
public static void testEncode(java.lang.String input)
throws XcodeException
input - the String to be encoded.
XcodeException - if the input array is null or empty
public static void testDecode(java.lang.String input)
throws XcodeException
input - the String to be decoded.
XcodeException - if the input array is null or empty
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||