public final class

Punycode

extends Object
java.lang.Object
   ↳ sun.net.idn.Punycode

Class Overview

Ported code from ICU punycode.c

Summary

Public Constructors
Punycode()
Public Methods
static StringBuffer decode(StringBuffer src, boolean[] caseFlags)
Converts Punycode to Unicode.
static StringBuffer encode(StringBuffer src, boolean[] caseFlags)
Converts Unicode to Punycode.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Punycode ()

Public Methods

public static StringBuffer decode (StringBuffer src, boolean[] caseFlags)

Converts Punycode to Unicode. The Unicode string will be at most as long as the Punycode string.@return

public static StringBuffer encode (StringBuffer src, boolean[] caseFlags)

Converts Unicode to Punycode. The input string must not contain single, unpaired surrogates. The output will be represented as an array of ASCII code points.@return