All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class gnu.inet.encoding.IDNA
java.lang.Object
   |
   +----gnu.inet.encoding.IDNA
  -  public class IDNA
  -  extends Object
   
  -   ACE_PREFIX ACE_PREFIX
-  
   
  -   IDNA() IDNA()
-  
   
  -   toASCII(String) toASCII(String)
-   Converts a Unicode string to ASCII using the procedure in RFC3490
 section 4.1.
  
-   toASCII(String, boolean, boolean) toASCII(String, boolean, boolean)
-   Converts a Unicode string to ASCII using the procedure in RFC3490
 section 4.1.
  
-   toUnicode(String) toUnicode(String)
-   Converts an ASCII-encoded string to Unicode.
  
-   toUnicode(String, boolean, boolean) toUnicode(String, boolean, boolean)
-   Converts an ASCII-encoded string to Unicode.
   
 ACE_PREFIX
ACE_PREFIX
 public static final String ACE_PREFIX
   
 IDNA
IDNA
 public IDNA()
   
 toASCII
toASCII
 public static String toASCII(String input) throws IDNAException
  -  Converts a Unicode string to ASCII using the procedure in RFC3490
 section 4.1. Unassigned characters are not allowed and STD3 ASCII
 rules are enforced. The input string may be a domain name
 containing dots.
   
- 
    -  Parameters:
    
-  input - Unicode string.
    
-  Returns:
    
-  Encoded string.
  
 
 toASCII
toASCII
 public static String toASCII(String input,
                              boolean allowUnassigned,
                              boolean useSTD3ASCIIRules) throws IDNAException
  -  Converts a Unicode string to ASCII using the procedure in RFC3490
 section 4.1. Unassigned characters are not allowed and STD3 ASCII
 rules are enforced.
   
- 
    -  Parameters:
    
-  input - Unicode string.
    -  allowUnassigned - Unassigned characters, allowed or not?
    -  useSTD3ASCIIRules - STD3 ASCII rules, enforced or not?
    
-  Returns:
    
-  Encoded string.
  
 
 toUnicode
toUnicode
 public static String toUnicode(String input)
  -  Converts an ASCII-encoded string to Unicode. Unassigned
 characters are not allowed and STD3 hostnames are enforced. Input
 may be domain name containing dots.
   
- 
    -  Parameters:
    
-  input - ASCII input string.
    
-  Returns:
    
-  Unicode string.
  
 
 toUnicode
toUnicode
 public static String toUnicode(String input,
                                boolean allowUnassigned,
                                boolean useSTD3ASCIIRules)
  -  Converts an ASCII-encoded string to Unicode.
   
- 
    -  Parameters:
    
-  input - ASCII input string.
    -  allowUnassigned - Allow unassigned Unicode characters.
    -  useSTD3ASCIIRules - Check that the output conforms to STD3.
    
-  Returns:
    
-  Unicode string.
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index